diff options
author | Toni Ylenius <toni.ylenius@cybercom.com> | 2014-12-17 12:13:58 +0200 |
---|---|---|
committer | Toni Ylenius <toni.ylenius@cybercom.com> | 2014-12-17 12:13:58 +0200 |
commit | bb36821b06408fd2cee059cd8b0c29a1f78341cc (patch) | |
tree | f88199fe54965828f9c1cfdaf9c7883e4d075456 | |
parent | 089d2c828b9fed10e16a871652f2cd0ed5022530 (diff) | |
download | openstack-ansible-modules-bb36821b06408fd2cee059cd8b0c29a1f78341cc.tar.gz |
Use _update_sg to create security groups in creation also
This fixes a bug when we define { direction: egress, ethertype: IPv4 }
in rules, because Neutron creates them by default.
-rw-r--r-- | neutron_sec_group | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neutron_sec_group b/neutron_sec_group index ccbdc37..9b95246 100644 --- a/neutron_sec_group +++ b/neutron_sec_group @@ -198,7 +198,7 @@ def _create_sg(module, network_client, identity_client): sg = network_client.create_security_group(data) sg = sg["security_group"] - sg = _create_sg_rules(network_client, sg, rules) + changed, sg = _update_sg(module, network_client, sg) return sg |