mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
cloudstack: common argument_spec and requried_together to utils
This commit is contained in:
parent
f563b22446
commit
c9a3801a25
1 changed files with 12 additions and 0 deletions
|
@ -34,6 +34,18 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
has_lib_cs = False
|
has_lib_cs = False
|
||||||
|
|
||||||
|
def cs_argument_spec():
|
||||||
|
return dict(
|
||||||
|
api_key = dict(default=None),
|
||||||
|
api_secret = dict(default=None, no_log=True),
|
||||||
|
api_url = dict(default=None),
|
||||||
|
api_http_method = dict(choices=['get', 'post'], default='get'),
|
||||||
|
api_timeout = dict(type='int', default=10),
|
||||||
|
api_region = dict(default='cloudstack'),
|
||||||
|
)
|
||||||
|
|
||||||
|
def cs_required_together():
|
||||||
|
return [['api_key', 'api_secret', 'api_url']]
|
||||||
|
|
||||||
class AnsibleCloudStack(object):
|
class AnsibleCloudStack(object):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue