From 70c56df055c82917e7a1cd74313c2434fd145f9d Mon Sep 17 00:00:00 2001 From: Matt Pascoe Date: Fri, 5 Feb 2016 09:34:35 -0700 Subject: [PATCH 1/3] Real fix for issue #37, the problem was not quotes but tabs. --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}", } } From ca181292cc622564f1e7818a29355ba7cb46ea77 Mon Sep 17 00:00:00 2001 From: Matt Pascoe Date: Fri, 5 Feb 2016 09:35:29 -0700 Subject: [PATCH 2/3] Update metadata.json --- metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 14ef7805f3f9831469ce70c40a94a9b445df3a8f Mon Sep 17 00:00:00 2001 From: Matt Pascoe Date: Fri, 5 Feb 2016 09:36:26 -0700 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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).