diff options
author | Zuul <zuul@review.opendev.org> | 2022-02-13 11:25:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-02-13 11:25:48 +0000 |
commit | 39322f5ad88cf5eef003af74294676a5563a8296 (patch) | |
tree | 15a758ad92186dafac4118897d7a03ea452c1b23 | |
parent | 10ac7a6138fe3caaff04936a1c87c60ff44d3e04 (diff) | |
parent | 91e002b1f2a509407055590e79a6ac489ab90755 (diff) | |
download | trove-39322f5ad88cf5eef003af74294676a5563a8296.tar.gz |
Merge "Improve the detect backup was created when parse log"17.0.0.0rc1
-rw-r--r-- | backup/main.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backup/main.py b/backup/main.py index acc57467..833ce7e7 100644 --- a/backup/main.py +++ b/backup/main.py @@ -14,10 +14,11 @@ import os +import sys + from oslo_config import cfg from oslo_log import log as logging from oslo_utils import importutils -import sys topdir = os.path.normpath( os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir)) @@ -112,8 +113,8 @@ def stream_backup_to_storage(runner_cls, storage): metadata=CONF.swift_extra_metadata, container=CONF.swift_container ) - LOG.info('Backup successfully, checksum: %s, location: %s', - checksum, location) + LOG.info('Backup successfully, checksum: %s, location: %s', + checksum, location) except Exception as err: LOG.exception('Failed to call stream_backup_to_storage, error: %s', err) |