Added choice validation for state arg

fixes traceback on invalid state arg
reviewable/pr18780/r1
nitzmahone 10 years ago
parent 86c30e68a1
commit fd7bbc9eba

@ -1199,7 +1199,7 @@ def main():
instance_profile_name = dict(), instance_profile_name = dict(),
instance_ids = dict(type='list', aliases=['instance_id']), instance_ids = dict(type='list', aliases=['instance_id']),
source_dest_check = dict(type='bool', default=True), source_dest_check = dict(type='bool', default=True),
state = dict(default='present'), state = dict(default='present', choices=['present', 'absent', 'running', 'stopped']),
exact_count = dict(type='int', default=None), exact_count = dict(type='int', default=None),
count_tag = dict(), count_tag = dict(),
volumes = dict(type='list'), volumes = dict(type='list'),

Loading…
Cancel
Save