From b42a9d56e63144e645556d20a484cec3c5f980fc Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Wed, 10 Jun 2015 17:51:59 -0400 Subject: [PATCH] Fix id value reference --- lib/ansible/modules/cloud/openstack/os_security_group_rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/openstack/os_security_group_rule.py b/lib/ansible/modules/cloud/openstack/os_security_group_rule.py index 1e8c450a37..3785789ec6 100644 --- a/lib/ansible/modules/cloud/openstack/os_security_group_rule.py +++ b/lib/ansible/modules/cloud/openstack/os_security_group_rule.py @@ -129,7 +129,7 @@ def main(): if not _get_rule_from_group(module, secgroup): _security_group_rule(module, nova_client, 'create', - parent_group_id=secgroup.id, + parent_group_id=secgroup['id'], ip_protocol=module.params['protocol'], from_port=module.params['port_range_min'], to_port=module.params['port_range_max'],