From a444c31b065755cb48fc38fe484f6ee05cf6bb38 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 4 Apr 2019 16:23:16 -0400 Subject: [PATCH] Hide instanced and password settings These are currently not supported. Change-Id: Ie38e38ebe199d61aedbd624c1dedca6f33ae5d02 --- pyghmi/ipmi/oem/lenovo/config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/config.py b/pyghmi/ipmi/oem/lenovo/config.py index b638d83a..4338bb7b 100644 --- a/pyghmi/ipmi/oem/lenovo/config.py +++ b/pyghmi/ipmi/oem/lenovo/config.py @@ -298,6 +298,13 @@ class LenovoFirmwareConfig(object): name = setting.find("mriName").text help = setting.find("desc").text onedata = setting.find('text_data') + if onedata is not None: + if onedata.get('password') == 'true': + protect = True + enumdata = setting.find('enumerate_data') + if enumdata is not None: + if enumdata.get('maxinstance') is not None: + protect = True if onedata is None: onedata = setting.find('numeric_data') if onedata is not None: