[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. 90c4a6028cf6ebd530af736ce08f1b413698b162

Micah Anderson micah at riseup.net
Sat May 31 17:15:31 UTC 2008


The following commit has been merged in the master branch:
commit 7d60b2771920a67e8dfc8b55ae81658bac2b5fc8
Author: Luke Kanies <luke at madstop.com>
Date:   Mon May 12 16:37:06 2008 -0500

    Applying patch by martin to fix #1207.
    
    The -o flag is now only used when the uid is being changed.

diff --git a/lib/puppet/provider/nameservice/objectadd.rb b/lib/puppet/provider/nameservice/objectadd.rb
index 8ebf892..4682b51 100644
--- a/lib/puppet/provider/nameservice/objectadd.rb
+++ b/lib/puppet/provider/nameservice/objectadd.rb
@@ -25,7 +25,7 @@ class ObjectAdd < Puppet::Provider::NameService
         cmd = [command(:modify),
             flag(param),
             value]
-        if @resource[:allowdupe]  == :true
+        if @resource[:allowdupe] == :true && param == :uid
             cmd << "-o"
         end
         cmd << @resource[:name]

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list