From: dave kormann Date: Tue, 23 Jul 2019 01:56:42 +0000 (-0400) Subject: FIX: Pass IPMI priv_level to hardware detector X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fremote-installer.git;a=commitdiff_plain;h=d5e8e4cb537ff07a58f774a16f764b137315ea32 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 --- 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)