Establish the supported importable interface
* Consumers of this client should not depend on being able to import any module other than glanceclient and glanceclient * The only attributs of the glanceclient module are Client and __version__ * The attributes of the glanceclient.exc modules have yet to be locked down * glanceclient.common.exceptions was replaced with a placeholder module until consumers of it are updated Change-Id: Iea9648cd06906d65764987c1f2ee5a88ebeee748
This commit is contained in:
@@ -24,8 +24,8 @@ import sys
|
||||
|
||||
from keystoneclient.v2_0 import client as ksclient
|
||||
|
||||
import glanceclient.client
|
||||
from glanceclient.common import exceptions as exc
|
||||
import glanceclient
|
||||
from glanceclient import exc
|
||||
from glanceclient.common import utils
|
||||
|
||||
|
||||
@@ -273,11 +273,11 @@ class OpenStackImagesShell(object):
|
||||
}
|
||||
endpoint, token = self._authenticate(**kwargs)
|
||||
|
||||
client = glanceclient.client.Client(api_version,
|
||||
endpoint,
|
||||
token,
|
||||
insecure=args.insecure,
|
||||
timeout=args.timeout)
|
||||
client = glanceclient.Client(api_version,
|
||||
endpoint,
|
||||
token,
|
||||
insecure=args.insecure,
|
||||
timeout=args.timeout)
|
||||
|
||||
try:
|
||||
args.func(client, args)
|
||||
|
||||
Reference in New Issue
Block a user