From 1112e1d0da18738ad14cac7619446c62df940157 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Tue, 5 Mar 2019 08:53:23 -0500 Subject: [PATCH] Add missing RETURN to restconf_config (#53324) --- .../network/restconf/restconf_config.py | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/restconf/restconf_config.py b/lib/ansible/modules/network/restconf/restconf_config.py index 2dfd3fb0c1..e80a5023be 100644 --- a/lib/ansible/modules/network/restconf/restconf_config.py +++ b/lib/ansible/modules/network/restconf/restconf_config.py @@ -69,6 +69,40 @@ EXAMPLES = ''' ''' RETURN = ''' +candidate: + description: The configuration sent to the device. + returned: When the method is not delete + type: dict + sample: | + { + "vpn-service": [ + { + "customer-name": "red", + "vpn-id": "blue_vpn1", + "vpn-service-topology": "ietf-l3vpn-svc:any-to-any" + } + ] + } +running: + description: The current running configuration on the device. + returned: When the method is not delete + type: dict + sample: | + { + "vpn-service": [ + { + "vpn-id": "red_vpn2", + "customer-name": "blue", + "vpn-service-topology": "ietf-l3vpn-svc:any-to-any" + }, + { + "vpn-id": "blue_vpn1", + "customer-name": "red", + "vpn-service-topology": "ietf-l3vpn-svc:any-to-any" + } + ] + } + ''' import json @@ -154,8 +188,6 @@ def main(): except ConnectionError as exc: module.fail_json(msg=str(exc), code=exc.code) - result['response'] = response - module.exit_json(**result)