mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-20 17:31:24 -07:00
redfish_utils: fix language check (#8613)
* redfish_utils: fix language check * add fragment file * typo * improve words * improve words based on suggestion --------- Co-authored-by: Mike Koreneff <mkoreneff@hudson-trading.com>
This commit is contained in:
parent
e794fa74da
commit
ca8ecb1df1
2 changed files with 3 additions and 1 deletions
|
@ -3833,7 +3833,7 @@ class RedfishUtils(object):
|
|||
vendor = self._get_vendor()['Vendor']
|
||||
rsp_uri = ""
|
||||
for loc in resp_data['Location']:
|
||||
if loc['Language'] == "en":
|
||||
if loc['Language'].startswith("en"):
|
||||
rsp_uri = loc['Uri']
|
||||
if vendor == 'HPE':
|
||||
# WORKAROUND
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue