~bkerensa/ubuntu/raring/puppet/new-upstream-release

« back to all changes in this revision

Viewing changes to lib/puppet/provider/nameservice/objectadd.rb

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2010-10-21 12:52:13 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20101021125213-x5pjaatmuv0i79jv
Tags: 2.6.3~rc1-0ubuntu1
* New upstream version
* debian/control:
  - move all puppet dependencies to puppet-common since all the code is
    actually located in puppet-common. 
  - move libaugeas from a recommend to a dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  end
14
14
 
15
15
  def modifycmd(param, value)
16
 
    cmd = [command(:modify), flag(param), value]
 
16
    cmd = [command(param.to_s =~ /password_.+_age/ ? :password : :modify)]
 
17
    cmd << flag(param) << value
17
18
    if @resource.allowdupe? && ((param == :uid) || (param == :gid and self.class.name == :groupadd))
18
19
      cmd << "-o"
19
20
    end