Have command nanny tell you how to disable the warning (#34061)

* Have command nanny tell you how to disable the warning
This commit is contained in:
Toshio Kuratomi
2017-12-19 17:30:10 -08:00
committed by GitHub
parent 790c06c079
commit 2e1c889275
2 changed files with 17 additions and 4 deletions

View File

@@ -43,7 +43,7 @@
assert:
that:
- "tar.warnings | length() == 1"
- "'Consider using unarchive module rather than running tar' in tar.warnings[0]"
- "'Consider using the unarchive module rather than running tar' in tar.warnings[0]"
- name: use command to execute chown
command: chown -h
@@ -54,7 +54,7 @@
assert:
that:
- "chown.warnings | length() == 1"
- "'Consider using file module with owner rather than running chown' in chown.warnings[0]"
- "'Consider using the file module with owner rather than running chown' in chown.warnings[0]"
- name: use command with unsupported executable arg
command: ls /dev/null executable=/bogus