Merge pull request #2338 from larsks/bug/flavor-should-return-id

make os_flavor return a top-level 'id' key
This commit is contained in:
Brian Coca 2015-10-23 14:52:03 -04:00
commit ad8fd86467

View file

@ -217,8 +217,13 @@ def main():
rxtx_factor=module.params['rxtx_factor'],
is_public=module.params['is_public']
)
module.exit_json(changed=True, flavor=flavor)
module.exit_json(changed=False, flavor=flavor)
changed=True
else:
changed=False
module.exit_json(changed=changed,
flavor=flavor,
id=flavor['id'])
elif state == 'absent':
if flavor: