rvb status: Remove old cruft

This commit is contained in:
Einar Forselv 2019-12-03 01:47:58 +01:00
parent 94e5c1bf8a
commit fd27217ba8
1 changed files with 4 additions and 19 deletions

View File

@ -44,25 +44,10 @@ def status(config, containers):
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.mysql_backup_enabled: if container.database_backup_enabled:
logger.info(' -> mysql %s', container.mysql_backup_enabled) instance = container.instance
creds = container.get_mysql_credentials() print(instance.container_type)
restic.ping_mysql( print(instance.ping())
creds['host'],
creds['port'],
creds['username'],
creds['password'],
)
if container.mariadb_backup_enabled:
logger.info(' -> mariadb %s', container.mysql_backup_enabled)
creds = container.get_mysql_credentials()
restic.ping_mysql(
creds['host'],
creds['port'],
creds['username'],
creds['password'],
)
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")