mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* fix IndexError in SetManagerNic
* add changelog fragment
(cherry picked from commit 0b2ebabd29
)
Co-authored-by: Bill Dodd <billdodd@gmail.com>
This commit is contained in:
parent
fc3e25c2d0
commit
6662bd9931
2 changed files with 6 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- redfish_config module, redfish_utils module utils - fix IndexError in ``SetManagerNic`` command (https://github.com/ansible-collections/community.general/issues/1692).
|
|
@ -2676,6 +2676,10 @@ class RedfishUtils(object):
|
|||
need_change = True
|
||||
# type is list
|
||||
if isinstance(set_value, list):
|
||||
if len(set_value) != len(cur_value):
|
||||
# if arrays are not the same len, no need to check each element
|
||||
need_change = True
|
||||
continue
|
||||
for i in range(len(set_value)):
|
||||
for subprop in payload[property][i].keys():
|
||||
if subprop not in target_ethernet_current_setting[property][i]:
|
||||
|
|
Loading…
Reference in a new issue