mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
redfish module_utils: case insesitive search for situations where the hostname/FQDN on iLO is in caps (#1744) (#1780)
* case insesitive search for situations where the hostname/FQDN on iLO is in caps
* handle explicit and implicit nic_addr variable, added changelog fragment
* changelog linter fix
* changelog typo fix
Co-authored-by: Łukasz Kurdziel <Lukasz.Kurdziel@GAINCapital.com>
(cherry picked from commit 93e0aa7557
)
Co-authored-by: lukurde <47138492+lukurde@users.noreply.github.com>
This commit is contained in:
parent
d871378574
commit
42cd462780
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- redfish_config - case insensitive search for situations where the hostname/FQDN case on iLO doesn't match variable's case (https://github.com/ansible-collections/community.general/pull/1744).
|
|
@ -2632,7 +2632,7 @@ class RedfishUtils(object):
|
||||||
if response['ret'] is False:
|
if response['ret'] is False:
|
||||||
return response
|
return response
|
||||||
data = response['data']
|
data = response['data']
|
||||||
if '"' + nic_addr + '"' in str(data) or "'" + nic_addr + "'" in str(data):
|
if '"' + nic_addr.lower() + '"' in str(data).lower() or "'" + nic_addr.lower() + "'" in str(data).lower():
|
||||||
target_ethernet_uri = uri
|
target_ethernet_uri = uri
|
||||||
target_ethernet_current_setting = data
|
target_ethernet_current_setting = data
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue