Merge pull request #1567 from emonty/feature/os_security_group

Use dict not object notation in OpenStack Security Group
This commit is contained in:
Brian Coca 2015-06-22 11:21:04 -04:00
commit 0652539ebc

View file

@ -125,12 +125,12 @@ def main():
secgroup['id'], description=description)
changed = True
module.exit_json(
changed=changed, id=secgroup.id, secgroup=secgroup)
changed=changed, id=secgroup['id'], secgroup=secgroup)
if state == 'absent':
if secgroup:
cloud.delete_security_group(secgroup['id'])
changed=True
changed = True
module.exit_json(changed=changed)
except shade.OpenStackCloudException as e: