summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-25 20:54:25 +0000
committerGerrit Code Review <review@openstack.org>2016-02-25 20:54:25 +0000
commit6176e802b3a4125e983eba3805f3f90881622bc4 (patch)
tree4a036acde45278cd2c9b22692ab34c220615514d /openstackclient/common
parent43957d602b70ac718f0eab0fa30be5a4f20a5233 (diff)
parentf49f0fead2933ace4cb85c70bd14d13d0c479e6a (diff)
downloadpython-openstackclient-6176e802b3a4125e983eba3805f3f90881622bc4.tar.gz
Merge "Fixed a bunch of spacing"
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/clientmanager.py1
-rw-r--r--openstackclient/common/command.py1
-rw-r--r--openstackclient/common/exceptions.py1
-rw-r--r--openstackclient/common/quota.py4
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 {}