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:
parent
a37d9f6151
commit
0c6094631a
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user