Docstrings should not start with a space
As per OpenStack Docstrings guide lines [1]: [H401] Docstrings should not start with a space. [H403] Multi line docstrings should end on a new line. [H404] Multi line docstrings should start without a leading new line. [H405] Multi line docstrings should start with a one line summary followed by an empty line. [1] http://docs.openstack.org/developer/hacking/#docstrings trivialfix Change-Id: Ifbc123eec81f47f833f93e5a51f34e385767162e
This commit is contained in:
@@ -32,7 +32,7 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
class FreezerCommandManager(CommandManager):
|
class FreezerCommandManager(CommandManager):
|
||||||
""" All commands available for the shell are registered here """
|
"""All commands available for the shell are registered here"""
|
||||||
SHELL_COMMANDS = {
|
SHELL_COMMANDS = {
|
||||||
'job-show': jobs.JobShow,
|
'job-show': jobs.JobShow,
|
||||||
'job-list': jobs.JobList,
|
'job-list': jobs.JobList,
|
||||||
@@ -205,7 +205,7 @@ class FreezerShell(App):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def client(self):
|
def client(self):
|
||||||
""" Build a client object to communicate with the API
|
"""Build a client object to communicate with the API
|
||||||
:return: freezerclient object
|
:return: freezerclient object
|
||||||
"""
|
"""
|
||||||
opts = {
|
opts = {
|
||||||
|
@@ -31,7 +31,7 @@ FREEZER_SERVICE_TYPE = 'backup'
|
|||||||
|
|
||||||
|
|
||||||
def guess_auth_version(opts):
|
def guess_auth_version(opts):
|
||||||
""" Guess keystone version to connect to"""
|
"""Guess keystone version to connect to"""
|
||||||
if opts.os_identity_api_version == '3':
|
if opts.os_identity_api_version == '3':
|
||||||
return '3'
|
return '3'
|
||||||
elif opts.os_identity_api_version == '2.0':
|
elif opts.os_identity_api_version == '2.0':
|
||||||
@@ -163,7 +163,7 @@ class Client(object):
|
|||||||
socket.gethostname())
|
socket.gethostname())
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
""" Validate that the client objects gets created correctly.
|
"""Validate that the client objects gets created correctly.
|
||||||
:return: bool
|
:return: bool
|
||||||
"""
|
"""
|
||||||
if self.opts.os_auth_url is None:
|
if self.opts.os_auth_url is None:
|
||||||
|
Reference in New Issue
Block a user