[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.7-1-98-gf19c0e5

Bryan Kearney bkearney at redhat.com
Wed Apr 8 21:48:21 UTC 2009


The following commit has been merged in the master branch:
commit 9d36b5833ceef954181d5d281aba08d414fcdb65
Author: Bryan Kearney <bkearney at redhat.com>
Date:   Thu Feb 12 09:32:01 2009 -0500

    Bug 1948: Added patch by jab to support the correct ins syntax. Updated the test cases as well

diff --git a/lib/puppet/provider/augeas/augeas.rb b/lib/puppet/provider/augeas/augeas.rb
index 8d4f6d5..f706544 100644
--- a/lib/puppet/provider/augeas/augeas.rb
+++ b/lib/puppet/provider/augeas/augeas.rb
@@ -178,14 +178,12 @@ Puppet::Type.type(:augeas).provide(:augeas) do
                         debug("sending command '#{command}' with params #{cmd_array.inspect}")                    
                         aug.clear(cmd_array[0])
                     when "insert", "ins"
-
-                        ext_array = cmd_array[1].split(" ") ;
-                        if cmd_array.size < 2 or ext_array.size < 2
+                        if cmd_array.size < 3
                             fail("ins requires 3 parameters")
                         end
                         label = cmd_array[0]
-                        where = ext_array[0]
-                        path = File.join(context, ext_array[1]) 
+                        where = cmd_array[1]
+                        path = File.join(context, cmd_array[2]) 
                         case where
                             when "before": before = true
                             when "after": before = false

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list