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:
Brian Waldon
2012-07-12 18:30:54 -07:00
parent 49bc6f94f2
commit 53acf1a0ca
7 changed files with 161 additions and 149 deletions
+7 -7
View File
@@ -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)