Fix W503 line-break-before-binary-operator

This just started happening. It's only two places though, so just fix
them.

Change-Id: I00ae56543a2a9f24e35744bb35e7984edc2712d2
This commit is contained in:
Monty Taylor 2018-04-13 10:47:04 -05:00
parent a37d9f6151
commit 0c6094631a
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 4 additions and 4 deletions

View File

@ -109,8 +109,8 @@ class TokenlessAuth(plugin.BaseAuthPlugin):
:return: A valid endpoint URL or None if not available.
:rtype: string or None
"""
if (service_type is plugin.AUTH_INTERFACE
or service_type.lower() == 'identity'):
if (service_type is plugin.AUTH_INTERFACE or
service_type.lower() == 'identity'):
return self.auth_url
return None

View File

@ -498,8 +498,8 @@ class Session(object):
# TODO(mordred) cinder uses volume in its microversion header. This
# logic should be handled in the future by os-service-types but for
# now hard-code for cinder.
if (service_type.startswith('volume')
or service_type == 'block-storage'):
if (service_type.startswith('volume') or
service_type == 'block-storage'):
service_type = 'volume'
headers.setdefault('OpenStack-API-Version',
'{service_type} {microversion}'.format(