From d6ca8195f0fd174709ef22aa5cc6c0386903c50e Mon Sep 17 00:00:00 2001
From: Yujun Zhang <zhang.yujunz@zte.com.cn>
Date: Tue, 18 Apr 2017 16:09:02 +0800
Subject: Fix hardcode dump file

Change-Id: Icef12e41b5bf64987a0991a9328ee8d6f1d3b161
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
---
 qtip/ansible_library/plugins/action/collect.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qtip/ansible_library/plugins/action/collect.py b/qtip/ansible_library/plugins/action/collect.py
index 26e813b8..8c825317 100644
--- a/qtip/ansible_library/plugins/action/collect.py
+++ b/qtip/ansible_library/plugins/action/collect.py
@@ -29,7 +29,7 @@ class ActionModule(ActionBase):
 
         dump = self._task.args.get('dump')
         if dump is not None:
-            dump_facts(task_vars['inventory_hostname'], [{'name': 'inxi.log', 'content': string}])
+            dump_facts(task_vars['inventory_hostname'], [{'name': dump, 'content': string}])
 
         return collect(patterns, string)
 
-- 
cgit