FIX: Pass IPMI priv_level to hardware detector 44/1244/1
authordave kormann <davek@research.att.com>
Tue, 23 Jul 2019 01:56:42 +0000 (21:56 -0400)
committerdave kormann <davek@research.att.com>
Tue, 23 Jul 2019 02:00:37 +0000 (22:00 -0400)
The interface for the hardware detector's get_hw_data function changed
to add a privilege level argument.  This change fixes a call to that
function to include the argument.

signed-off-by: dave kormann <davek@research.att.com>
Change-Id: I04ebb9373a5f6a48d7d59f9f7ca7af997dd8a028

src/remoteinstaller/installer/install.py

index eaa645b..86d8c0f 100644 (file)
@@ -136,11 +136,12 @@ class Installer(object):
         host = self._uc['hosts'][hw]['hwmgmt']['address']
         user = self._uc['hosts'][hw]['hwmgmt']['user']
         passwd = self._uc['hosts'][hw]['hwmgmt']['password']
+        priv_level = self._uc['hosts'][hw]['hwmgmt'].get('priv_level', 'ADMINISTRATOR')
 
         try:
-            hw_data = hw_detect.get_hw_data(host, user, passwd, False)
+            hw_data = hw_detect.get_hw_data(host, user, passwd, priv_level, False)
         except HWException as e:
-            error = "Harware not detected for {}: {}".format(hw, str(e))
+            error = "Hardware not detected for {}: {}".format(hw, str(e))
             logging.error(error)
             raise BMCException(error)