Clean up rvb status output
This commit is contained in:
parent
225c26d4d9
commit
948c73aa3f
|
@ -39,15 +39,15 @@ def status(config, containers):
|
||||||
backup_containers = containers.containers_for_backup()
|
backup_containers = containers.containers_for_backup()
|
||||||
for container in backup_containers:
|
for container in backup_containers:
|
||||||
logger.info('service: %s', container.service_name)
|
logger.info('service: %s', container.service_name)
|
||||||
if container.volume_backup_enabled:
|
|
||||||
|
|
||||||
|
if container.volume_backup_enabled:
|
||||||
for mount in container.filter_mounts():
|
for mount in container.filter_mounts():
|
||||||
logger.info(' - volume: %s', mount.source)
|
logger.info(' - volume: %s', mount.source)
|
||||||
|
|
||||||
if container.database_backup_enabled:
|
if container.database_backup_enabled:
|
||||||
instance = container.instance
|
instance = container.instance
|
||||||
print(instance.container_type)
|
ping = instance.ping()
|
||||||
print(instance.ping())
|
logger.info(' - %s (is_ready=%s)', instance.container_type, ping == 0)
|
||||||
|
|
||||||
if len(backup_containers) == 0:
|
if len(backup_containers) == 0:
|
||||||
logger.info("No containers in the project has 'restic-volume-backup.enabled' label")
|
logger.info("No containers in the project has 'restic-volume-backup.enabled' label")
|
||||||
|
|
Loading…
Reference in New Issue