Fix W503 line break before binary operator
According to PEP8 the line break should be always after a binary operator. Change-Id: I9d0f6909d0e649fe740b748b831894ccb4e80b15
This commit is contained in:
parent
ff980114b6
commit
fa3a8edf20
@ -595,9 +595,9 @@ class HTTPClient(object):
|
||||
|
||||
def _save_keys(self):
|
||||
# Store the token/mgmt url in the keyring for later requests.
|
||||
if (self.keyring_saver and self.os_cache and not self.keyring_saved
|
||||
and self.auth_token and self.management_url
|
||||
and self.tenant_id):
|
||||
if (self.keyring_saver and self.os_cache and not self.keyring_saved and
|
||||
self.auth_token and self.management_url and
|
||||
self.tenant_id):
|
||||
self.keyring_saver.save(self.auth_token,
|
||||
self.management_url,
|
||||
self.tenant_id)
|
||||
|
@ -137,8 +137,8 @@ class FakeHTTPClient(base_client.HTTPClient):
|
||||
|
||||
def get_endpoint(self):
|
||||
# check if endpoint matches expected format (eg, v2.1)
|
||||
if (hasattr(self, 'endpoint_type')
|
||||
and ENDPOINT_TYPE_RE.search(self.endpoint_type)):
|
||||
if (hasattr(self, 'endpoint_type') and
|
||||
ENDPOINT_TYPE_RE.search(self.endpoint_type)):
|
||||
return "http://nova-api:8774/%s/" % self.endpoint_type
|
||||
else:
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user