Add missing print format and missing ws in log message

This is to add missing print format parameter and missing white
spaces in the log message.

Change-Id: I76f790f98a9f7f2c7f0cbbbed1d50f5ec057b8c8
This commit is contained in:
zhufl 2020-10-30 10:21:04 +08:00
parent b7881e919d
commit 5ed5b65993
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ class AdminOs(object):
% (backup.id, del_backup[0].status))
if (del_backup[0].status == 'deleting') \
and (int(time.time()) - start_time > timeout):
LOG.error("Delete backup %s failed, In a state of"
"deleting over 120s")
LOG.error("Delete backup %s failed, In a state of "
"deleting over 120s", backup.id)
raise Exception(
"Delete backup %s failed due to timeout over 120s,"
" the status of backup is %s."