Add support to walk through /redfish/v1 using plugin
Changes:
- Add check for plugin response if dictionary
- Add new redfish plugin module
- Add entry in the YAML
Tested:
- With plugin
- Generic existing testing
Change-Id: I71291e337d0a064bbe024fbef193380ec3cfb8ad
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_collector.py b/ffdc/ffdc_collector.py
index 95d4fa7..e33fb84 100644
--- a/ffdc/ffdc_collector.py
+++ b/ffdc/ffdc_collector.py
@@ -470,7 +470,10 @@
# Creates a new file
with open(targ_file_with_path, 'w') as fp:
- fp.write(result)
+ if isinstance(result, dict):
+ fp.write(json.dumps(result))
+ else:
+ fp.write(result)
fp.close
executed_files_saved.append(targ_file)