fixed domain_id to actually be supported

also added domain as an alias
alt fixes #1437
This commit is contained in:
Brian Coca 2016-01-01 01:52:52 -05:00 committed by Matt Clay
parent 6a02b17a2e
commit 896eecfdad

View file

@ -49,6 +49,7 @@ options:
- Domain id to create the project in if the cloud supports domains - Domain id to create the project in if the cloud supports domains
required: false required: false
default: None default: None
aliases: ['domain']
enabled: enabled:
description: description:
- Is the project enabled - Is the project enabled
@ -138,7 +139,7 @@ def main():
argument_spec = openstack_full_argument_spec( argument_spec = openstack_full_argument_spec(
name=dict(required=True), name=dict(required=True),
description=dict(required=False, default=None), description=dict(required=False, default=None),
domain=dict(required=False, default=None), domain_id=dict(required=False, default=None, aliases=['domain']),
enabled=dict(default=True, type='bool'), enabled=dict(default=True, type='bool'),
state=dict(default='present', choices=['absent', 'present']) state=dict(default='present', choices=['absent', 'present'])
) )
@ -155,7 +156,7 @@ def main():
name = module.params['name'] name = module.params['name']
description = module.params['description'] description = module.params['description']
domain = module.params['domain'] domain = module.params['domain_id']
enabled = module.params['enabled'] enabled = module.params['enabled']
state = module.params['state'] state = module.params['state']