From 9634f1e9c99743e7eee73daab06d861c87df90cb Mon Sep 17 00:00:00 2001 From: Damien Date: Wed, 22 Feb 2017 13:46:30 -0800 Subject: [PATCH] Fix variable name to return to match latest pyez pos version (#21717) --- lib/ansible/modules/network/aos/aos_login.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/aos/aos_login.py b/lib/ansible/modules/network/aos/aos_login.py index cdc4d8f6309..31e68631201 100644 --- a/lib/ansible/modules/network/aos/aos_login.py +++ b/lib/ansible/modules/network/aos/aos_login.py @@ -106,8 +106,8 @@ def aos_login(module): module.fail_json(msg="AOS-server login credentials failed") module.exit_json(changed=False, - ansible_facts=dict( aos_session=dict(url=aos.api.url, headers=aos.api.headers)), - aos_session=dict(url=aos.api.url, headers=aos.api.headers)) + ansible_facts=dict(aos_session=aos.session), + aos_session=dict(aos_session=aos.session)) def main(): module = AnsibleModule(