Merge pull request #1567 from emonty/feature/os_security_group
Use dict not object notation in OpenStack Security Group
This commit is contained in:
commit
0652539ebc
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue