Fix invalid user/group checks bug

The existence of output is checked for both of the invalid user/group
tasks, but the *length* of the output isn't checked. This patch
fixes that bug and only displays output when there is output to
display.

Closes-Bug: 1650113
Change-Id: I661006e6ee5c01505c1801d7d55c3823f3632ddd
This commit is contained in:
Major Hayden 2016-12-15 09:44:44 -06:00
parent 3942b20fb1
commit 17a4661f69

View File

@ -67,6 +67,7 @@
when:
- invalid_owner_files is defined
- invalid_owner_files.stdout_lines is defined
- invalid_owner_files.stdout_lines | length > 0
tags:
- file_perms
- medium
@ -91,6 +92,7 @@
when:
- invalid_group_owner_files is defined
- invalid_group_owner_files.stdout_lines is defined
- invalid_group_owner_files.stdout_lines | length > 0
tags:
- file_perms
- medium