Resolves: bz1874653

This commit is contained in:
Joel Savitz 2021-02-12 16:16:25 -05:00
parent 891cb17996
commit cf71e92993
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,28 @@
commit 581327fd45351dd53c06a26517bb7f92e19d8f31
Author: Charles Rose <charles.rose@dell.com>
Date: Mon Aug 31 17:40:08 2020 -0500
fix parsing HostConfig for DHCP
assigntype.append(AssignType.DHCP) fails for DHCP because
assigntype [] is not set.
Signed-off-by: Charles Rose <charles.rose@dell.com>
diff --git a/redfish-finder b/redfish-finder
old mode 100644
new mode 100755
index 9a185b3..461eff9
--- a/redfish-finder
+++ b/redfish-finder
@@ -124,8 +124,8 @@ class HostConfig():
if cursor == None:
printf("redfish-finder: Unable to parse SMBIOS Host IP Assignment Type")
return None
+ self.assigntype = []
if cursor.split()[0] == "Static":
- self.assigntype = []
self.assigntype.append(AssignType.STATIC)
cursor = cursor_consume_next(cursor, "Host IP Address Format: ")
if cursor.split()[0] == "IPv4":

View File

@ -1,6 +1,6 @@
Name: redfish-finder Name: redfish-finder
Version: 0.3 Version: 0.3
Release: 4%{?dist} Release: 5%{?dist}
Summary: Utility for parsing SMBIOS information and configuring canonical BMC access Summary: Utility for parsing SMBIOS information and configuring canonical BMC access
BuildArch: noarch BuildArch: noarch
@ -10,6 +10,7 @@ Source0: %url/archive/V%{version}/%{name}-%{version}.tar.gz
Patch0: redfish-finder-multi-block.patch Patch0: redfish-finder-multi-block.patch
Patch1: hostname-null-check.patch Patch1: hostname-null-check.patch
Patch2: hostconfig-dhcp-parse.patch
%{?systemd_requires} %{?systemd_requires}
BuildRequires: systemd BuildRequires: systemd
@ -51,6 +52,9 @@ install -D -p -m 0644 ./redfish-finder.service %{buildroot}/%{_unitdir}/redfish-
%{_unitdir}/redfish-finder.service %{_unitdir}/redfish-finder.service
%changelog %changelog
* Fri Feb 12 2021 Joel Savitz <jsavitz@redhat.com - 0.3-5
- Fix parsing HostConfig for DHCP (bz1874653)
* Thu Oct 17 2019 Neil Horman <nhorman@redhat.com> - 0.3-4 * Thu Oct 17 2019 Neil Horman <nhorman@redhat.com> - 0.3-4
- Fix null hostname check (bz1729343) - Fix null hostname check (bz1729343)