mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07: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:
parent
417d11eeb9
commit
54882d4715
3 changed files with 5 additions and 23 deletions
|
@ -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']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue