summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
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 {}