Skip to content

Commit

Permalink
Access point power_level var name update issue (cisco-en-programmabil…
Browse files Browse the repository at this point in the history
  • Loading branch information
madhansansel authored Dec 6, 2024
2 parents 676b09a + 4f0286d commit cc45620
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/modules/accesspoint_workflow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3259,6 +3259,7 @@ def compare_radio_config(self, current_radio, want_radio):

temp_dtos = {}
unmatch_count = 0
self.keymap["power_level"] = "powerlevel"
dtos_keys = list(want_radio.keys())
slot_id_key = "_" + str(current_radio["slot_id"])
self.log("Comparing keys for slot ID: {}".format(current_radio["slot_id"]), "INFO")
Expand Down Expand Up @@ -3289,6 +3290,13 @@ def compare_radio_config(self, current_radio, want_radio):
elif dto_key == "radio_band":
temp_dtos[self.keymap[dto_key]] = want_radio[dto_key]
self.log("Radio band set to: {0}".format(want_radio[dto_key]), "INFO")
elif dto_key == "power_level":
if want_radio[dto_key] != current_radio[self.keymap[dto_key]]:
temp_dtos[self.keymap[dto_key]] = want_radio[dto_key]
self.log("Unmatched key {0}: current value {1}, desired value {2}"
.format(dto_key, current_radio[self.keymap[dto_key]],
want_radio[dto_key]), "INFO")
unmatch_count = unmatch_count + 1
else:
if want_radio[dto_key] != current_radio[dto_key]:
temp_dtos[self.keymap[dto_key]] = want_radio[dto_key]
Expand Down

0 comments on commit cc45620

Please sign in to comment.