fix pylint

This commit is contained in:
Daniel Wallace 2018-03-06 07:47:38 -07:00
parent ac4133f432
commit a67b61eb33
No known key found for this signature in database
GPG Key ID: 5FA5E5544F010D48

View File

@ -81,8 +81,6 @@ class SaltNeutron(NeutronShell):
''' '''
Set up neutron credentials Set up neutron credentials
''' '''
if not HAS_NEUTRON:
return None
__utils__['versions.warn_until']( __utils__['versions.warn_until'](
'Neon', 'Neon',
( (
@ -90,6 +88,8 @@ class SaltNeutron(NeutronShell):
'Please update to using the neutronng module' 'Please update to using the neutronng module'
), ),
) )
if not HAS_NEUTRON:
return None
elif all([use_keystoneauth, HAS_KEYSTONEAUTH]): elif all([use_keystoneauth, HAS_KEYSTONEAUTH]):
self._new_init(username=username, self._new_init(username=username,