Skip to content

Commit c487392

Browse files
committed
Service Root: Modified Script in service_root/test_service_root.robot
Changes: - Modified walk_nested_dict method to validate list type also. - Modified argument passing method for Valid Length line Tested: - Ran basic test pass for Verify Redfish Unresponsive URL paths Change-Id: I7cd541476561a87e3c2a308883d2106b658a76c2 Signed-off-by: Reshma S <[email protected]>
1 parent a8dbc69 commit c487392

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/bmc_redfish_utils.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,15 @@ def walk_nested_dict(self, data, url=""):
391391
for memberDict in value:
392392
if isinstance(memberDict, str):
393393
self.__pending_enumeration.add(memberDict)
394-
else:
394+
elif (
395+
isinstance(memberDict, dict)
396+
and "@odata.id" in memberDict
397+
):
395398
self.__pending_enumeration.add(
396399
memberDict["@odata.id"]
397400
)
401+
else:
402+
self.__pending_enumeration.add(memberDict[1])
398403

399404
if "@odata.id" == key:
400405
value = value.rstrip("/")

0 commit comments

Comments
 (0)