Skip to content

Commit

Permalink
Check all dhcp_options, not just first one (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Donckers <Daniel.Donckers@acxiom.com>
  • Loading branch information
donckers and ddonck authored Oct 7, 2021
1 parent b231939 commit 2295957
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ def check_vendor_specific_dhcp_option(module, ib_spec):
'''
for key, value in iteritems(ib_spec):
if isinstance(module.params[key], list):
temp_dict = module.params[key][0]
if 'num' in temp_dict:
if temp_dict['num'] in (43, 124, 125, 67):
del module.params[key][0]['use_option']
for temp_dict in module.params[key]:
if 'num' in temp_dict:
if temp_dict['num'] in (43, 124, 125, 67):
del temp_dict['use_option']
return ib_spec


Expand Down

0 comments on commit 2295957

Please sign in to comment.