mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
return will not work in the context it is being used in - docs are misleading
This commit is contained in:
parent
849f792ca6
commit
a6bbfbfe8e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue