make os_flavor return a top-level 'id' key

make os_flavor return a top-level 'id' key, much like other os_*
resources.
reviewable/pr18780/r1
Lars Kellogg-Stedman 9 years ago
parent 2e49d89be7
commit 8368da4297

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

Loading…
Cancel
Save