From 91e002b1f2a509407055590e79a6ac489ab90755 Mon Sep 17 00:00:00 2001 From: Bo Tran Date: Sun, 5 Sep 2021 13:53:24 +0700 Subject: Improve the detect backup was created when parse log Task: #43209 Story: #2009176 Change-Id: I6aff0d185991db77b17a4f23084de6734b2b3a6c --- backup/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'backup') 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) -- cgit v1.2.1