mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
cloudstack: remove duplicate import cs handling, already in utils.
This commit is contained in:
parent
0953ef753d
commit
29f803b16a
29 changed files with 0 additions and 264 deletions
|
@ -178,12 +178,6 @@ cloudstack_instance.instance_name:
|
|||
|
||||
import base64
|
||||
|
||||
try:
|
||||
from cs import CloudStack, CloudStackException, read_config
|
||||
has_lib_cs = True
|
||||
except ImportError:
|
||||
has_lib_cs = False
|
||||
|
||||
# import cloudstack common
|
||||
from ansible.module_utils.cloudstack import *
|
||||
|
||||
|
@ -270,9 +264,6 @@ def main():
|
|||
supports_check_mode=False,
|
||||
)
|
||||
|
||||
if not has_lib_cs:
|
||||
module.fail_json(msg="python library cs required: pip install cs")
|
||||
|
||||
cs_instance_facts = AnsibleCloudStackInstanceFacts(module=module).run()
|
||||
cs_facts_result = dict(changed=False, ansible_facts=cs_instance_facts)
|
||||
module.exit_json(**cs_facts_result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue