Gen-Z support
Fix for Gen-Z simulator which doesn't provide the SessionService entrypoint Change-Id: I3b17c9db8c12605cd70c1034bbb138743325dbd1
This commit is contained in:
parent
72bb353f00
commit
9e20fd158b
@ -237,10 +237,14 @@ class RedfishConnection(object):
|
||||
# ===================================================================
|
||||
|
||||
# standard
|
||||
# Gen-Z simulator has no SessionService for now so handle this case
|
||||
try:
|
||||
self.SessionService = standard.SessionService(
|
||||
self.Root.get_link_url(
|
||||
mapping.redfish_mapper.map_sessionservice()),
|
||||
self.connection_parameters)
|
||||
except AttributeError:
|
||||
self.SessionService = None
|
||||
|
||||
# Moonshot m510 cartridge has neither Managers nor Chassis, so handle
|
||||
# this case in the code.
|
||||
|
Loading…
Reference in New Issue
Block a user