From a83b93a0da44c37ce4ca7750c4cc1e0149263bf2 Mon Sep 17 00:00:00 2001 From: Michal Dulko Date: Thu, 19 Mar 2015 21:53:46 +0100 Subject: [PATCH] Fix logging mistake in swift backup driver After recent swift driver refactoring a small mistake was introduced causing c-bak to log an exception because of wrong number of arguments to format a string. This commit fixes the issue. Change-Id: I2e322ae6a2495771c89fa25ab5474da20eecc80d Closes-Bug: 1434188 --- cinder/backup/drivers/swift.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/backup/drivers/swift.py b/cinder/backup/drivers/swift.py index 479231586..1c302afc0 100644 --- a/cinder/backup/drivers/swift.py +++ b/cinder/backup/drivers/swift.py @@ -145,8 +145,8 @@ class SwiftBackupDriver(chunkeddriver.ChunkedBackupDriver): LOG.debug("Using swift URL %s", self.swift_url) self.swift_attempts = CONF.backup_swift_retry_attempts self.swift_backoff = CONF.backup_swift_retry_backoff - LOG.debug('Connect to %s in "%s" mode', (CONF.backup_swift_url, - CONF.backup_swift_auth)) + LOG.debug('Connect to %s in "%s" mode', CONF.backup_swift_url, + CONF.backup_swift_auth) if CONF.backup_swift_auth == 'single_user': if CONF.backup_swift_user is None: LOG.error(_LE("single_user auth mode enabled, " -- 2.45.2