Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
salt uncomment
$ cat /tmp/myfile
# blah
#acl_smtp_predata = daily_limit_acl
#acl_not_smtp = daily_limit_acl
more blah
$ salt-call --local file.uncomment /tmp/myfile 'acl_(smtp_predata|not_smtp) = daily_limit_acl'
local:
---
+++
@@ -1,2 +1,2 @@
-#acl_smtp_predata = daily_limit_acl
-#acl_not_smtp = daily_limit_acl
+acl_smtp_predata = daily_limit_acl
+acl_not_smtp = daily_limit_acl
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.