Skip to content
Snippets Groups Projects
Commit c371b493 authored by fredj's avatar fredj
Browse files

postfix::config: fix augeas name.

An "invalid tag" error was thrown is the value was something like "[10.1.2.3]".
The trick was to surround the value with single quotes.
Thanks gmambro for the bug report.
parent 2dc4c41b
No related branches found
No related tags found
No related merge requests found
......@@ -37,13 +37,13 @@ define postfix::config ($ensure = present, $value) {
case $ensure {
present: {
augeas { "set postfix $name to $value":
augeas { "set postfix '${name}' to '${value}'":
changes => "set $name $value",
}
}
absent: {
augeas { "set postfix $name to $value":
augeas { "rm postfix '${name}'":
changes => "rm $name",
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment