Fixed cli issue with empty cpu/core parameter
Change-Id: Id0fee74357a56baaec59ca5359eb00a65cfd6185 Signed-off-by: gabrpham <Gabriel.Pham@amd.com>
这个提交包含在:
@@ -375,6 +375,9 @@ class AMDSMIParser(argparse.ArgumentParser):
|
||||
|
||||
|
||||
def _validate_cpu_core(self, value):
|
||||
if value == '':
|
||||
outputformat = self.helpers.get_output_format()
|
||||
raise amdsmi_cli_exceptions.AmdSmiMissingParameterValueException(value, outputformat)
|
||||
if isinstance(value, str):
|
||||
if value.lower() == "all":
|
||||
return value
|
||||
|
||||
在新工单中引用
屏蔽一个用户