make os_flavor return a top-level 'id' key
make os_flavor return a top-level 'id' key, much like other os_* resources.
This commit is contained in:
parent
c1e081fcf6
commit
bdd73fdfd0
1 changed files with 7 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue