Skip JSON schemas enumeration
/redfish/v1/JsonSchemas/ and it's sub resources are JSON
documentation data which describes the implemented resouces.
The same can be found in https://redfish.dmtf.org/redfish/schema_index
Change-Id: I003de69a3f9186c32523cdc82893cef2b5ef171c
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bmc_redfish_utils.py b/lib/bmc_redfish_utils.py
index ca4653b..cca8d3f 100644
--- a/lib/bmc_redfish_utils.py
+++ b/lib/bmc_redfish_utils.py
@@ -82,6 +82,10 @@
return resource_dict
for resource in url_list:
+ # JsonSchemas data are not required in enumeration.
+ # Example: '/redfish/v1/JsonSchemas/' and sub resources.
+ if 'JsonSchemas' in resource:
+ continue
self._rest_response_ = self._redfish_.get(resource)
if self._rest_response_.status != 200:
continue