cloudstack: improve required params

pull/18777/head
Rene Moser 9 years ago committed by Matt Clay
parent b2e60b7cde
commit 30feb9d387

@ -369,6 +369,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -222,6 +222,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -421,6 +421,13 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_one_of = (
['ip_address', 'network'],
),
required_together = (
['icmp_type', 'icmp_code'],
['api_key', 'api_secret', 'api_url'],
),
mutually_exclusive = (
['icmp_type', 'start_port'],
['icmp_type', 'end_port'],

@ -788,6 +788,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -200,6 +200,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -332,6 +332,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -407,6 +407,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -165,6 +165,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -401,6 +401,10 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['icmp_type', 'icmp_code'],
['api_key', 'api_secret', 'api_url'],
),
mutually_exclusive = (
['icmp_type', 'start_port'],
['icmp_type', 'end_port'],

@ -219,6 +219,9 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

@ -291,6 +291,10 @@ def main():
api_url = dict(default=None),
api_http_method = dict(default='get'),
),
required_together = (
['icmp_type', 'icmp_code'],
['api_key', 'api_secret', 'api_url'],
),
supports_check_mode=True
)

Loading…
Cancel
Save