mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
dimensiondata: fix broken import (#35634)
* Fix broken import * Remove never reached statements exit_json and fail_json methods call sys.exit, subsequent statements can not be executed.
This commit is contained in:
@@ -71,8 +71,6 @@ class DimensionDataModule(object):
|
||||
if not HAS_LIBCLOUD:
|
||||
self.module.fail_json(msg='libcloud is required for this module.')
|
||||
|
||||
return
|
||||
|
||||
# Credentials are common to all Dimension Data modules.
|
||||
credentials = self.get_credentials()
|
||||
self.user_id = credentials['user_id']
|
||||
@@ -125,8 +123,6 @@ class DimensionDataModule(object):
|
||||
if not HAS_LIBCLOUD:
|
||||
self.module.fail_json(msg='libcloud is required for this module.')
|
||||
|
||||
return None
|
||||
|
||||
user_id = None
|
||||
key = None
|
||||
|
||||
@@ -137,8 +133,6 @@ class DimensionDataModule(object):
|
||||
msg='"mcp_user" parameter was specified, but not "mcp_password" (either both must be specified, or neither).'
|
||||
)
|
||||
|
||||
return None
|
||||
|
||||
user_id = self.module.params['mcp_user']
|
||||
key = self.module.params['mcp_password']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user