return information about created subnet

make os_subnet behave like os_network in terms of returning information
about the created resource.  With this commit, os_subnet will return the
created subnet in `subnet` and the subnet id in `id`.
This commit is contained in:
Lars Kellogg-Stedman 2015-10-22 13:27:17 -04:00
parent 2e49d89be7
commit d73f5a4adb

View file

@ -302,7 +302,9 @@ def main():
changed = True
else:
changed = False
module.exit_json(changed=changed)
module.exit_json(changed=changed,
subnet=subnet,
id=subnet['id'])
elif state == 'absent':
if not subnet: