1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

cloudstack: common argument_spec and requried_together to utils

This commit is contained in:
Rene Moser 2015-09-22 14:36:43 +02:00
parent f563b22446
commit c9a3801a25

View file

@ -34,6 +34,18 @@ try:
except ImportError:
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):