cloudstack: improve required params

This commit is contained in:
Rene Moser 2015-05-29 10:07:00 +02:00 committed by Matt Clay
parent b2e60b7cde
commit 30feb9d387
11 changed files with 39 additions and 0 deletions

View file

@ -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'],