return will not work in the context it is being used in - docs are misleading

This commit is contained in:
Ben Brady 2015-07-14 14:13:03 -07:00
parent 849f792ca6
commit a6bbfbfe8e
2 changed files with 2 additions and 2 deletions

View file

@ -162278,7 +162278,7 @@ comment\-repo:
\- pattern: ^enabled=0
\- repl: enabled=1
\- check_cmd:
\- grep \(aqenabled=0\(aq /etc/yum.repos.d/fedora.repo && return 1 || return 0
\- grep \(aqenabled=0\(aq /etc/yum.repos.d/fedora.repo && exit 1 || exit 0
.ft P
.fi
.UNINDENT

View file

@ -600,7 +600,7 @@ same privileges as the salt-minion.
- pattern: ^enabled=0
- repl: enabled=1
- check_cmd:
- grep 'enabled=0' /etc/yum.repos.d/fedora.repo && return 1 || return 0
- grep 'enabled=0' /etc/yum.repos.d/fedora.repo && exit 1 || exit 0
This will attempt to do a replace on all enabled=0 in the .repo file, and
replace them with enabled=1. The check_cmd is just a bash command. It will do