Clean up rvb status output

This commit is contained in:
Einar Forselv 2019-12-03 03:04:49 +01:00
parent 225c26d4d9
commit 948c73aa3f
1 changed files with 3 additions and 3 deletions

View File

@ -39,15 +39,15 @@ def status(config, containers):
backup_containers = containers.containers_for_backup()
for container in backup_containers:
logger.info('service: %s', container.service_name)
if container.volume_backup_enabled:
if container.volume_backup_enabled:
for mount in container.filter_mounts():
logger.info(' - volume: %s', mount.source)
if container.database_backup_enabled:
instance = container.instance
print(instance.container_type)
print(instance.ping())
ping = instance.ping()
logger.info(' - %s (is_ready=%s)', instance.container_type, ping == 0)
if len(backup_containers) == 0:
logger.info("No containers in the project has 'restic-volume-backup.enabled' label")