[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:54 UTC 2009


The following commit has been merged in the master branch:
commit edef064ee2a2fe50113cbd2dde8e2bf45b500c55
Author: Nigel Kersten <nigelk at google.com>
Date:   Wed Dec 3 19:25:12 2008 -0800

    Make ralsh behave more sanely for non-existent objects and property values

diff --git a/bin/ralsh b/bin/ralsh
index 3cbfcad..5dae8f1 100755
--- a/bin/ralsh
+++ b/bin/ralsh
@@ -192,7 +192,9 @@ properties = typeobj.properties.collect { |s| s.name }
 
 format = proc {|trans|
     trans.dup.collect do |param, value|
-        if value == "" or value == []
+        if value.nil? or value.to_s.empty?
+            trans.delete(param)
+        elsif value.to_s == "absent" and param.to_s != "ensure"
             trans.delete(param)
         end
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list