Re-adding neutron dependency check

This commit is contained in:
CEG 2017-05-23 20:06:05 -06:00
parent cce07eefc2
commit 66ab1e5184

View File

@ -80,7 +80,10 @@ class SaltNeutron(NeutronShell):
'''
Set up neutron credentials
'''
if all([use_keystoneauth, HAS_KEYSTONEAUTH]):
if not HAS_NEUTRON:
return None
elif all([use_keystoneauth, HAS_KEYSTONEAUTH]):
self._new_init(username=username,
project_name=tenant_name,
auth_url=auth_url,