cloudstack: improve required params

reviewable/pr18780/r1
Rene Moser 10 years ago committed by Greg DeKoenigsberg
parent ce93a91a59
commit 93a1542cc1

@ -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
)

@ -223,6 +223,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
)

@ -422,6 +422,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
)

@ -333,6 +333,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
)

@ -167,6 +167,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
)

@ -402,6 +402,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
)

@ -292,6 +292,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