Fix add member failure

This commit is contained in:
NilashishC 2018-08-01 19:01:19 +05:30 committed by Matt Clay
parent 9ad21fbfb5
commit f3c3c99642

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