ffdc: Change config file option to -c
- Change config file option to -c and expand printing of os-release info
Tests:
- Regression testing to OpenBmc, AIX and Ubuntu targets.
Signed-off-by: Peter D Phan <peterp@us.ibm.com>
Change-Id: I43e2e6c81a7a9b27422884bee77bf50f426da0df
diff --git a/ffdc/ffdc_collector.py b/ffdc/ffdc_collector.py
index 6dbb530..9e18b69 100644
--- a/ffdc/ffdc_collector.py
+++ b/ffdc/ffdc_collector.py
@@ -107,7 +107,8 @@
response = self.remoteclient.execute_command(command)
if response:
print("\n\t[INFO] %s /etc/os-release\n" % self.hostname)
- print("\t\t %s" % self.find_os_type(response, 'PRETTY_NAME'))
+ for each_info in response:
+ print("\t\t %s" % each_info)
identity = self.find_os_type(response, 'ID').split('=')[1].upper()
else:
response = self.remoteclient.execute_command('uname -a')