summaryrefslogtreecommitdiffstats
path: root/nova/image
diff options
context:
space:
mode:
Diffstat (limited to 'nova/image')
-rw-r--r--nova/image/glance.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py
index 588d86b6e..44a3c6f83 100644
--- a/nova/image/glance.py
+++ b/nova/image/glance.py
@@ -85,8 +85,7 @@ class GlanceImageService(service.BaseImageService):
def _set_client_context(self, context):
"""Sets the client's auth token."""
- if hasattr(self.client, 'set_auth_token'):
- self.client.set_auth_token(context.auth_token)
+ self.client.set_auth_token(context.auth_token)
def index(self, context, filters=None, marker=None, limit=None):
"""Calls out to Glance for a list of images available."""