From 3cc149a802346bef063bcb865182e4e21ec8b086 Mon Sep 17 00:00:00 2001 From: KIYOHIRO ADACHI Date: Wed, 18 Sep 2013 15:59:28 +0900 Subject: [PATCH] Fixes call GlanceConnectionFailed in invalid ARG 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cinder/image/glance.py b/cinder/image/glance.py index 596fffcef..27aeb12d4 100644 --- a/cinder/image/glance.py +++ b/cinder/image/glance.py @@ -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) -- 2.45.2