diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-09-29 08:22:41 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-09-29 08:22:41 +0000 |
commit | a98ed220916a0cae022b35dcdc212ba65eacafd2 (patch) | |
tree | 2d2ac8beff1fdba7c55ec2c42eb4e995b4ac5035 /glanceclient/shell.py | |
parent | 385085eb555a1604f19c64a75c582d646d9d9dd0 (diff) | |
parent | b9eee5ee3209f78c9e4e86bce896876c3dbcf247 (diff) | |
download | python-glanceclient-a98ed220916a0cae022b35dcdc212ba65eacafd2.tar.gz |
Merge "Add check Identity validate when get schemas"
Diffstat (limited to 'glanceclient/shell.py')
-rwxr-xr-x | glanceclient/shell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glanceclient/shell.py b/glanceclient/shell.py index 7534c91..f2a5cff 100755 --- a/glanceclient/shell.py +++ b/glanceclient/shell.py @@ -575,6 +575,9 @@ class OpenStackImagesShell(object): schema = client.schemas.get(resource) with open(schema_file_path, 'w') as f: f.write(json.dumps(schema.raw())) + except exc.Unauthorized: + raise exc.CommandError( + "Invalid OpenStack Identity credentials.") except Exception: # NOTE(esheffield) do nothing here, we'll get a message # later if the schema is missing |