From d5e8e4cb537ff07a58f774a16f764b137315ea32 Mon Sep 17 00:00:00 2001 From: dave kormann Date: Mon, 22 Jul 2019 21:56:42 -0400 Subject: [PATCH] FIX: Pass IPMI priv_level to hardware detector 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 Change-Id: I04ebb9373a5f6a48d7d59f9f7ca7af997dd8a028 --- src/remoteinstaller/installer/install.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/remoteinstaller/installer/install.py b/src/remoteinstaller/installer/install.py index eaa645b..86d8c0f 100644 --- a/src/remoteinstaller/installer/install.py +++ b/src/remoteinstaller/installer/install.py @@ -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) -- 2.16.6