diff options
author | Alexander Bochkarev <abochkarev@mirantis.com> | 2014-02-24 10:41:36 +0400 |
---|---|---|
committer | Alexander Bochkarev <abochkarev@mirantis.com> | 2014-02-27 11:15:55 +0400 |
commit | dd4032e9fbe4df90c9e51a4e003da472e7b6dad9 (patch) | |
tree | ae5b81e36d45a2a7586b01edb0d8af84df3b4bea /nova/image | |
parent | b91b9bd0c8511e3fcce0128e4bfaa73f451c07c3 (diff) | |
download | nova-dd4032e9fbe4df90c9e51a4e003da472e7b6dad9.tar.gz |
Enable flake8 H404 checking
This check indicates on comments in which multi line docstring should
start without a leading new line. This change fixed all violators of
said check.
Change-Id: Ic7357b8c7420767dba611f6fcee07b7700f3aea8
Diffstat (limited to 'nova/image')
-rw-r--r-- | nova/image/glance.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py index 986394c476..0814aecadd 100644 --- a/nova/image/glance.py +++ b/nova/image/glance.py @@ -142,8 +142,7 @@ def _create_glance_client(context, host, port, use_ssl, version=1): def get_api_servers(): - """ - Shuffle a list of CONF.glance_api_servers and return an iterator + """Shuffle a list of CONF.glance_api_servers and return an iterator that will cycle through the list, looping around to the beginning if necessary. """ @@ -195,8 +194,7 @@ class GlanceClientWrapper(object): self.use_ssl, version) def call(self, context, version, method, *args, **kwargs): - """ - Call a glance client method. If we get a connection error, + """Call a glance client method. If we get a connection error, retry the request according to CONF.glance_num_retries. """ retry_excs = (glanceclient.exc.ServiceUnavailable, |