diff --git a/CHANGELOG.md b/CHANGELOG.md index e31924e..fb4845d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +#### 2016-02-05 - 1.0.6 +* Real fix enforcing for values with spaces, convert tabs to spaces (#37, @mattpascoe). + #### 2016-02-05 - 1.0.5 * Fix enforcing for values with spaces (#37, @mattpascoe). diff --git a/manifests/init.pp b/manifests/init.pp index 7046dd5..5f3421d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -90,7 +90,7 @@ $qvalue = shellquote("${value}") # lint:endignore exec { "enforce-sysctl-value-${qtitle}": - unless => "/usr/bin/test \"$(/sbin/sysctl -n ${qtitle})\" = \"${qvalue}\"", + unless => "/usr/bin/test \"$(/sbin/sysctl -n ${qtitle}|sed 's/\t/ /g')\" = ${qvalue}", command => "/sbin/sysctl -w ${qtitle}=${qvalue}", } } diff --git a/metadata.json b/metadata.json index 1b19c91..5283850 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "thias-sysctl", - "version": "1.0.5", + "version": "1.0.6", "author": "Matthias Saou", "license": "Apache-2.0", "summary": "Sysctl module",