mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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:
parent
14455f4acc
commit
70bd95b4f0
1 changed files with 3 additions and 1 deletions
|
@ -302,7 +302,9 @@ def main():
|
||||||
changed = True
|
changed = True
|
||||||
else:
|
else:
|
||||||
changed = False
|
changed = False
|
||||||
module.exit_json(changed=changed)
|
module.exit_json(changed=changed,
|
||||||
|
subnet=subnet,
|
||||||
|
id=subnet['id'])
|
||||||
|
|
||||||
elif state == 'absent':
|
elif state == 'absent':
|
||||||
if not subnet:
|
if not subnet:
|
||||||
|
|
Loading…
Reference in a new issue