From ef81f03e89a2b53498f52d2e6262ea0ec94afdd4 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 3 Feb 2012 22:49:10 +0100 Subject: [PATCH] have to report absent state no matter what the desired state is Signed-off-by: Steven Armstrong --- conf/type/__key_value/explorer/state | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/type/__key_value/explorer/state b/conf/type/__key_value/explorer/state index 7e66cb69..ec760f71 100755 --- a/conf/type/__key_value/explorer/state +++ b/conf/type/__key_value/explorer/state @@ -29,10 +29,13 @@ value="$(cat "$__object/parameter/value" 2>/dev/null \ case "$state" in absent) - # if the key exists, with whatever value, we will have to remove it - # so report it as present if egrep -q "^$key$delimiter+" "$file"; then + # if the key exists, with whatever value, we will have to remove it + # so report it as present echo present + else + # key does not exist + echo absent fi ;; present)