Add ansible action plugin `collect` 57/33057/3
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 6 Apr 2017 09:18:54 +0000 (17:18 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 6 Apr 2017 10:07:58 +0000 (18:07 +0800)
commitc6c68d91a08dc9315da8c209e2046e9a0300c997
treef6ad57835f5ec57a4a6a94786e6c95217a2859af
parent62460407a8fbcc99c154df3eabb8732c1908992e
Add ansible action plugin `collect`

- this plugin collects information or metrics from string
- it is reworked from qtip.collector.parser.grep
- the captured subgroups are always list even only one match found

Change-Id: I1def3d7b40c7928b503fae1be531976a13e5d0be
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
qtip/ansible_library/plugins/__init__.py [new file with mode: 0644]
qtip/ansible_library/plugins/action/__init__.py [new file with mode: 0644]
qtip/ansible_library/plugins/action/collect.py [new file with mode: 0644]
tests/unit/ansible_library/plugins/action/collect_test.py [new file with mode: 0644]