Add YAML parsing to update env vars for SCP
Change-Id: I28419842547f6744f6558a71201d9814baf7712f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_collector.py b/ffdc/ffdc_collector.py
index 920f0fb..cf07c8e 100644
--- a/ffdc/ffdc_collector.py
+++ b/ffdc/ffdc_collector.py
@@ -586,9 +586,11 @@
for command in list_of_commands:
try:
+ command = self.yaml_env_and_plugin_vars_populate(command)
filename = command.split('ls -AX')[1]
+ filename = self.yaml_env_and_plugin_vars_populate(filename)
except IndexError:
- self.logger.info("\t\tInvalid command %s" % command)
+ self.logger.error("\t\tInvalid command %s" % command)
continue
cmd_exit_code, err, response = \