mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -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
|
@ -226,12 +226,6 @@ pod:
|
|||
sample: pod01
|
||||
'''
|
||||
|
||||
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 *
|
||||
|
||||
|
@ -406,9 +400,6 @@ def main():
|
|||
supports_check_mode=True
|
||||
)
|
||||
|
||||
if not has_lib_cs:
|
||||
module.fail_json(msg="python library cs required: pip install cs")
|
||||
|
||||
try:
|
||||
acs_cluster = AnsibleCloudStackCluster(module)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue