diff --git a/manifests/snmpv3_user.pp b/manifests/snmpv3_user.pp index 83acb7f8..df3fa40e 100644 --- a/manifests/snmpv3_user.pp +++ b/manifests/snmpv3_user.pp @@ -78,9 +78,9 @@ } if $privpass { - $cmd = "createUser ${title} ${authtype} ${authpass} ${privtype} ${privpass}" + $cmd = "createUser ${title} ${authtype} \\\"${authpass}\\\" ${privtype} \\\"${privpass}\\\"" } else { - $cmd = "createUser ${title} ${authtype} ${authpass}" + $cmd = "createUser ${title} ${authtype} \\\"${authpass}\\\"" } exec { "create-snmpv3-user-${title}": path => '/bin:/sbin:/usr/bin:/usr/sbin',