Skip to content

Commit

Permalink
pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
slivik authored and Akm0d committed Dec 11, 2019
1 parent 8720fdc commit c046bd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions salt/modules/nova.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
HAS_NOVA = True
except NameError as exc:
HAS_NOVA = False

# Define the module's virtual name
__virtualname__ = 'nova'

Expand Down
6 changes: 6 additions & 0 deletions salt/utils/openstack/nova.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ def check_nova():
NOVACLIENT_MINVER)
return False

if check_nova():
try:
import novaclient.auth_plugin
except ImportError:
log.debug('Using novaclient version 7.0.0 or newer. Authentication '
'plugin auth_plugin.py is not available anymore.')

# kwargs has to be an object instead of a dictionary for the __post_parse_arg__
class KwargsStruct(object):
Expand Down

0 comments on commit c046bd1

Please sign in to comment.