diff --git a/lib/ansible/modules/network/ios/ios_linkagg.py b/lib/ansible/modules/network/ios/ios_linkagg.py index e07c18b0e57..b046cdc571a 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')