Issue #1407 has been updated by jamtur01.

Status changed from Ready for Checkin to Closed

Pushed in commit:"d25c2b282cc4cd703bba3d2457f93431098ddc85" in branch 0.24.x
----------------------------------------
Bug #1407: bad definition of allowdupe param in group.rb
http://reductivelabs.com/redmine/issues/show/1407

Author: machpo
Status: Closed
Priority: Normal
Assigned to: jamtur01
Category: group
Target version: 0.24.5
Keywords: group
Complexity: Trivial
Patch: None
Affected version: 0.24.4


This is puppet 24.5rc1 on centos 5.2 x86_64.  Looks to be a simple bug - but it 
will prevent new groups from being created on many platforms.  trivial test 
case and patch follow:

# cat grp.pp 
group { "foo": gid => 2000 }

# puppet grp.pp 
err: //Group[foo]/ensure: change from absent to present failed: Could not set 
present on ensure: undefined method `allowdupe?' for 
#<Puppet::Type::Group:0x2aaaabd2d090> at /tmp/grp.pp:1
# < after edit > 
# puppet grp.pp 
notice: //Group[foo]/ensure: defined 'ensure' as 'present'
# diff -c /usr/lib/ruby/site_ruby/1.8/puppet/type/group.rb 
/usr/lib/ruby/site_ruby/1.8/puppet/type/group.rb.old 
*** /usr/lib/ruby/site_ruby/1.8/puppet/type/group.rb    2008-07-08 
22:06:43.000000000 -0400
--- /usr/lib/ruby/site_ruby/1.8/puppet/type/group.rb.old        2008-07-07 
22:52:21.000000000 -0400
***************
*** 110,116 ****
              isnamevar
          end
  
!         newparam(:allowdupe, :boolean => true) do
              desc "Whether to allow duplicate GIDs.  This option does not work 
on
                  FreeBSD (contract to the ``pw`` man page)."
                  
--- 110,116 ----
              isnamevar
          end
  
!         newparam(:allowdupe) do
              desc "Whether to allow duplicate GIDs.  This option does not work 
on
                  FreeBSD (contract to the ``pw`` man page)."
                  



----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to