]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixes call GlanceConnectionFailed in invalid ARG
authorKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Wed, 18 Sep 2013 06:59:28 +0000 (15:59 +0900)
committerKIYOHIRO ADACHI <adachi@mxs.nes.nec.co.jp>
Wed, 18 Sep 2013 08:04:46 +0000 (17:04 +0900)
A mapping key of 'netloc' is always ignored. Thus information in
'netloc' is lost. But because it is included in 'error_msg', I remove
'netloc=netloc'.

Change-Id: I937044bcca0cb196fcd96cfa421de777713d76f5
Closes-Bug: #1226959

cinder/image/glance.py

index 596fffcef96db0600bb567c02a0587877cbf79ab..27aeb12d47dccdc097e266ea1aacabe82e683b8d 100644 (file)
@@ -175,8 +175,7 @@ class GlanceClientWrapper(object):
                                                    'extra': extra,
                                                    }
                     LOG.exception(error_msg)
-                    raise exception.GlanceConnectionFailed(netloc=netloc,
-                                                           reason=str(e))
+                    raise exception.GlanceConnectionFailed(reason=str(e))
                 LOG.exception(error_msg)
                 time.sleep(1)