diff options
author | Toni Ylenius <toni.ylenius@cybercom.com> | 2014-12-04 13:01:16 +0200 |
---|---|---|
committer | Toni Ylenius <toni.ylenius@cybercom.com> | 2014-12-04 13:01:16 +0200 |
commit | b0551dc7ffb600f04001c19f8a2f9704e5f4e855 (patch) | |
tree | c79180178609e99c728dc5079687405f6de84a43 | |
parent | 7107e3dc95f94638bc3740fc88721bc680adb5ce (diff) | |
download | openstack-ansible-modules-b0551dc7ffb600f04001c19f8a2f9704e5f4e855.tar.gz |
Set 'tenant_id' for security group rules also
This is required so that 'tenant_name' option works in intuitive way.
-rw-r--r-- | neutron_sec_group | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/neutron_sec_group b/neutron_sec_group index bc069c7..00605f0 100644 --- a/neutron_sec_group +++ b/neutron_sec_group @@ -240,6 +240,7 @@ def _create_sg_rules(network_client, sg, rules): """ if rules: for rule in rules: + rule['tenant_id'] = sg['tenant_id'] rule['security_group_id'] = sg['id'] data = { "security_group_rule": rule |