mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #8613/ca8ecb1d backport][stable-8] redfish_utils: fix language check (#8616)
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>
(cherry picked from commit ca8ecb1df1
)
Co-authored-by: Mike Koreneff <mkoreneff@users.noreply.github.com>
This commit is contained in:
parent
4e3469f0e5
commit
37a9f18fab
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/8613-redfish_utils-language.yaml
Normal file
2
changelogs/fragments/8613-redfish_utils-language.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- redfish_utils module utils - do not fail when language is not exactly "en" (https://github.com/ansible-collections/community.general/pull/8613).
|
|
@ -3786,7 +3786,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…
Reference in a new issue