Avoid exiting config mode before configuring port-channel members (#42999)

This commit is contained in:
Deepak Agrawal 2018-07-23 22:03:41 +05:30 committed by Matt Davis
parent 85122a6c38
commit 8f3a82dc9b

View file

@ -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')