SWDEV-466598 - Fixed CLI process outputs
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com> Change-Id: I902e82b6e78311e99542b109435346889daa49fc
This commit is contained in:
@@ -72,9 +72,11 @@ class AMDSMILogger():
|
||||
def is_human_readable_format(self):
|
||||
return self.format == self.LoggerFormat.human_readable.value
|
||||
|
||||
|
||||
def clear_multiple_devices_ouput(self):
|
||||
self.multiple_device_output.clear()
|
||||
|
||||
|
||||
def _capitalize_keys(self, input_dict):
|
||||
output_dict = {}
|
||||
for key in input_dict.keys():
|
||||
@@ -163,6 +165,9 @@ class AMDSMILogger():
|
||||
yaml_output = yaml_output.replace("AMDSMI_SPACING_REMOVAL:\n", "")
|
||||
yaml_output = yaml_output.replace("'", "") # Remove ''
|
||||
|
||||
# Remove process_info indicies for Host parity:
|
||||
yaml_output = re.sub(r'PROCESS_INFO_[0-9]+:', 'PROCESS_INFO:', yaml_output)
|
||||
|
||||
clean_yaml_output = ''
|
||||
for line in yaml_output.splitlines():
|
||||
line = line.split(':')
|
||||
|
||||
Reference in New Issue
Block a user