summaryrefslogtreecommitdiff
path: root/glanceclient/shell.py
diff options
context:
space:
mode:
authorkairat_kushaev <kkushaev@mirantis.com>2016-04-04 18:48:02 +0300
committerKairat Kushaev <kkushaev@mirantis.com>2016-06-02 13:25:30 +0000
commitf58a73495f81dea700f229117f567bad93e9edaf (patch)
tree346af94d60085a494e53013a07a44a5db4ec1f63 /glanceclient/shell.py
parent28f905fb454c0774b9f5e1e1ef15f7ec330851dc (diff)
downloadpython-glanceclient-f58a73495f81dea700f229117f567bad93e9edaf.tar.gz
Remove unused skip_authentication decorator
skip_authentication is not used as decorator for glanceclient methods. So this method can be safely removed from glance codebase because it is artifact from old implementation. Change-Id: I235b4c6b835c75266d8fae1bb603685aa17ad497
Diffstat (limited to 'glanceclient/shell.py')
-rw-r--r--glanceclient/shell.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py
index 8f2a205..a4564f6 100644
--- a/glanceclient/shell.py
+++ b/glanceclient/shell.py
@@ -428,9 +428,7 @@ class OpenStackImagesShell(object):
endpoint = self._get_image_url(args)
auth_token = args.os_auth_token
- auth_req = (hasattr(args, 'func') and
- utils.is_authentication_required(args.func))
- if not auth_req or (endpoint and auth_token):
+ if endpoint and auth_token:
kwargs = {
'token': auth_token,
'insecure': args.insecure,