]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix logging mistake in swift backup driver
authorMichal Dulko <michal.dulko@intel.com>
Thu, 19 Mar 2015 20:53:46 +0000 (21:53 +0100)
committerMichal Dulko <michal.dulko@intel.com>
Thu, 19 Mar 2015 20:53:46 +0000 (21:53 +0100)
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

index 47923158697f6071835b5f1dbccd16feab2ddf8f..1c302afc00f8455b99cd49949b9ddea989f339e9 100644 (file)
@@ -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, "