We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76872c0 + 64d5042 commit dfbd232Copy full SHA for dfbd232
scripts/rf_discover.py
@@ -38,7 +38,14 @@
38
groups = re.search(r"^(.+)\/redfish\/v1\/?$", services[service])
39
url = groups.group(1)
40
redfish_obj = redfish.redfish_client(base_url=url, timeout=15, max_retry=3)
41
- print("{}: {} ({})".format(service, services[service], redfish_obj.root["Product"]))
+ print(
42
+ "{}: {} ({}, {})".format(
43
+ service,
44
+ services[service],
45
+ redfish_obj.root.get("Product", "N/A"),
46
+ redfish_obj.root.get("ServiceIdentification", "N/A"),
47
+ )
48
49
except Exception:
50
print("{}: {}".format(service, services[service]))
51
0 commit comments