diff options
| author | Brandon Palm <bapalm@us.ibm.com> | 2016-02-23 10:38:58 -0600 |
|---|---|---|
| committer | Brandon Palm <bapalm@us.ibm.com> | 2016-02-23 10:38:58 -0600 |
| commit | f49f0fead2933ace4cb85c70bd14d13d0c479e6a (patch) | |
| tree | 8d3dacfb9fb599c23fdb489ad84daac804cab714 /openstackclient/common | |
| parent | 02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f (diff) | |
| download | python-openstackclient-f49f0fead2933ace4cb85c70bd14d13d0c479e6a.tar.gz | |
Fixed a bunch of spacing
Nothing too complicated here. I fixed a bunch of spacing issues
that I saw in OSC.
Change-Id: I935ab48e7c5bac5f88ecdb3a05f73fb44fc9f41d
Diffstat (limited to 'openstackclient/common')
| -rw-r--r-- | openstackclient/common/clientmanager.py | 1 | ||||
| -rw-r--r-- | openstackclient/common/command.py | 1 | ||||
| -rw-r--r-- | openstackclient/common/exceptions.py | 1 | ||||
| -rw-r--r-- | openstackclient/common/quota.py | 4 |
4 files changed, 5 insertions, 2 deletions
diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py index fd88bdec..938dd05c 100644 --- a/openstackclient/common/clientmanager.py +++ b/openstackclient/common/clientmanager.py @@ -37,6 +37,7 @@ USER_AGENT = 'python-openstackclient' class ClientCache(object): """Descriptor class for caching created client handles.""" + def __init__(self, factory): self.factory = factory self._handle = None diff --git a/openstackclient/common/command.py b/openstackclient/common/command.py index 13b0bcc2..fee4559e 100644 --- a/openstackclient/common/command.py +++ b/openstackclient/common/command.py @@ -22,6 +22,7 @@ import six class CommandMeta(abc.ABCMeta): + def __new__(mcs, name, bases, cls_dict): if 'log' not in cls_dict: cls_dict['log'] = logging.getLogger( diff --git a/openstackclient/common/exceptions.py b/openstackclient/common/exceptions.py index 8ec49931..5f5f5ab1 100644 --- a/openstackclient/common/exceptions.py +++ b/openstackclient/common/exceptions.py @@ -41,6 +41,7 @@ class UnsupportedVersion(Exception): class ClientException(Exception): """The base exception class for all exceptions this library raises.""" + def __init__(self, code, message=None, details=None): self.code = code self.message = message or self.__class__.message diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py index f208948e..b3d4c3b6 100644 --- a/openstackclient/common/quota.py +++ b/openstackclient/common/quota.py @@ -169,7 +169,7 @@ class ShowQuota(command.ShowOne): project = utils.find_resource( identity_client.projects, parsed_args.project, - ).id + ).id try: if parsed_args.quota_class: @@ -193,7 +193,7 @@ class ShowQuota(command.ShowOne): project = utils.find_resource( identity_client.projects, parsed_args.project, - ).id + ).id return self.app.client_manager.network.get_quota(project) else: return {} |
