summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2016-01-01 01:52:52 -0500
committerBrian Coca <brian.coca+git@gmail.com>2016-01-01 01:54:22 -0500
commit5b47600c2b1104fe76cbcf88f0527599f030183d (patch)
tree7fa52d544c2712fb0151019362d17bb26df60f90
parent935109364d369b8ff1f9dcf21f4ed8d9049f2a60 (diff)
downloadansible-modules-extras-5b47600c2b1104fe76cbcf88f0527599f030183d.tar.gz
fixed domain_id to actually be supported
also added domain as an alias alt fixes #1437
-rw-r--r--cloud/openstack/os_project.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloud/openstack/os_project.py b/cloud/openstack/os_project.py
index 37901f84..b159264e 100644
--- a/cloud/openstack/os_project.py
+++ b/cloud/openstack/os_project.py
@@ -49,6 +49,7 @@ options:
- Domain id to create the project in if the cloud supports domains
required: false
default: None
+ aliases: ['domain']
enabled:
description:
- Is the project enabled
@@ -138,7 +139,7 @@ def main():
argument_spec = openstack_full_argument_spec(
name=dict(required=True),
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'),
state=dict(default='present', choices=['absent', 'present'])
)
@@ -155,7 +156,7 @@ def main():
name = module.params['name']
description = module.params['description']
- domain = module.params['domain']
+ domain = module.params['domain_id']
enabled = module.params['enabled']
state = module.params['state']