diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2019-09-16 17:13:27 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2019-10-25 11:57:21 -0400 |
commit | 59132c9250a925b1287eb25227748025bb9e5a55 (patch) | |
tree | 34b4f3caac05de980f95adf28e8cd21dd4b94d3f /__run__.py | |
parent | 903958306830ea00ac47e3ea353eaa5d8abbacb6 (diff) | |
download | sos-59132c9250a925b1287eb25227748025bb9e5a55.tar.gz |
[plugins] extend SoSPredicate by command output inclusion test
Add a predicate type in form
cmd_outputs={'cmd': 'foo --help', 'output': 'bar'}
that checks whether output of given command contains given string.
Multiple commands/outputs can be provided in a list.
Related to: #1682
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to '__run__.py')
0 files changed, 0 insertions, 0 deletions