From 51fae74e7cfbd23b549c4291152fbe62b88a33c7 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Fri, 23 Oct 2015 13:32:37 -0400 Subject: [PATCH] make os_router return a top level 'id' key make os_router return a top-level 'id' key, much like other os_* resources. --- lib/ansible/modules/cloud/openstack/os_router.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/openstack/os_router.py b/lib/ansible/modules/cloud/openstack/os_router.py index d8d547f5f1f..d48ed0417f1 100644 --- a/lib/ansible/modules/cloud/openstack/os_router.py +++ b/lib/ansible/modules/cloud/openstack/os_router.py @@ -335,7 +335,9 @@ def main(): changed = True - module.exit_json(changed=changed, router=router) + module.exit_json(changed=changed, + router=router, + id=router['id']) elif state == 'absent': if not router: