Fix missing attribute on redfish command objects

Change-Id: I429abc1bf3784607c8a4f2f7b688f2285ca9a711
This commit is contained in:
Jarrod Johnson 2023-01-31 14:14:01 -05:00
parent c6520d56ff
commit 4c27c21d33
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ class Command(object):
self._oem = None
self._gpool = pool
self._bmcv4ip = None
self._bmcv6ip = None
for addrinf in socket.getaddrinfo(bmc, 0, 0, socket.SOCK_STREAM):
if addrinf[0] == socket.AF_INET:
self._bmcv4ip = socket.inet_pton(addrinf[0], addrinf[-1][0])