From 8f3a82dc9b6f661c911850bd814d2542f2b70a83 Mon Sep 17 00:00:00 2001 From: Deepak Agrawal Date: Mon, 23 Jul 2018 22:03:41 +0530 Subject: [PATCH] Avoid exiting config mode before configuring port-channel members (#42999) --- lib/ansible/modules/network/ios/ios_linkagg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/ios/ios_linkagg.py b/lib/ansible/modules/network/ios/ios_linkagg.py index e07c18b0e5..b046cdc571 100644 --- a/lib/ansible/modules/network/ios/ios_linkagg.py +++ b/lib/ansible/modules/network/ios/ios_linkagg.py @@ -130,7 +130,7 @@ def map_obj_to_commands(updates, module): elif state == 'present': cmd = ['interface port-channel {0}'.format(group), - 'end'] + 'exit'] if not obj_in_have: if not group: module.fail_json(msg='group is a required option')