Merge pull request #742 from 4nd3r/__line_onchange

add --onchange to __line
remotes/origin/4.10
Darko Poljak 6 years ago committed by GitHub
commit 2332b52d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cdist/conf/type/__line/gencode-remote
  2. 2
      cdist/conf/type/__line/man.rst
  3. 1
      cdist/conf/type/__line/parameter/optional

@ -122,3 +122,7 @@ END {
' "$file" > "\$tmpfile"
mv -f "\$tmpfile" "$file"
DONE
if [ -f "$__object/parameter/onchange" ]; then
cat "$__object/parameter/onchange"
fi

@ -46,6 +46,8 @@ regex
state
'present' or 'absent', defaults to 'present'
onchange
The code to run if line is added, removed or updated.
BOOLEAN PARAMETERS

@ -4,3 +4,4 @@ file
line
regex
state
onchange

Loading…
Cancel
Save