Merge "Follow up to Attempt using Redfish settings resource to get URI" into stable/xena

This commit is contained in:
Zuul 2022-05-09 12:44:26 +00:00 committed by Gerrit Code Review
commit 2b2417e043
1 changed files with 2 additions and 3 deletions

View File

@ -292,14 +292,13 @@ class System(base.ResourceBase):
etag = self._get_etag()
path = self.path
# NOTE(janders): checking if @RedFish.Settings are available; if so
# NOTE(janders): checking if @Redfish.Settings are available; if so
# using the URI from the SettingsObject. Also ensuring the ETag URI
# matches in this case (the one above would not be valid for new URI).
if self._settings and self._settings.resource_uri:
path = self._settings.resource_uri
resp = self._conn.get(path)
if resp:
etag = resp.headers['ETag']
etag = resp.headers.get('ETag')
# TODO(lucasagomes): Check the return code and response body ?
# Probably we should call refresh() as well.