Merge pull request #1567 from emonty/feature/os_security_group

Use dict not object notation in OpenStack Security Group
reviewable/pr18780/r1
Brian Coca 10 years ago
commit 0652539ebc

@ -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:

Loading…
Cancel
Save