Merge "Add 'list-types' and 'schema' operation in native shell"

This commit is contained in:
Jenkins 2017-03-27 15:13:21 +00:00 committed by Gerrit Code Review
commit e732f0ff23
2 changed files with 3 additions and 1 deletions

View File

@ -333,7 +333,7 @@ def construct_http_client(*args, **kwargs):
return SessionClient(**parameters)
elif endpoint:
realm_name = kwargs.pop('keycloak_realm_name', None)
if keycloak_auth_url is not None:
if keycloak_auth_url:
kwargs['auth_token'] = keycloak_auth.authenticate(
auth_url=keycloak_auth_url,
client_id=kwargs.pop('openid_client_id', None),

View File

@ -306,6 +306,8 @@ class GlareShell(app.App):
'publish': glareclient.osc.v1.artifacts.PublishArtifact,
'add-tag': glareclient.osc.v1.artifacts.AddTag,
'remove-tag': glareclient.osc.v1.artifacts.RemoveTag,
'type-list': glareclient.osc.v1.artifacts.TypeList,
'schema': glareclient.osc.v1.artifacts.TypeSchema,
'upload': glareclient.osc.v1.blobs.UploadBlob,
'download': glareclient.osc.v1.blobs.DownloadBlob,
'location': glareclient.osc.v1.blobs.AddLocation