summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util.rb')
-rw-r--r--lib/puppet/util.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb
index 2418cad25..d1878f592 100644
--- a/lib/puppet/util.rb
+++ b/lib/puppet/util.rb
@@ -19,8 +19,8 @@ module Util
if group.is_a?(Integer)
gid = group
else
- unless obj = Puppet.type(:group)[group]
- obj = Puppet.type(:group).create(
+ unless obj = Puppet::Type::Group[group]
+ obj = Puppet::Type::Group.create(
:name => group,
:check => [:gid]
)
@@ -47,8 +47,8 @@ module Util
if user.is_a?(Integer)
uid = user
else
- unless obj = Puppet.type(:user)[user]
- obj = Puppet.type(:user).create(
+ unless obj = Puppet::Type::User[user]
+ obj = Puppet::Type::User.create(
:name => user,
:check => [:uid, :gid]
)
@@ -114,12 +114,12 @@ module Util
if useself
Puppet::Log.create(
:level => level,
- :source => self,
:message => args
)
else
Puppet::Log.create(
:level => level,
+ :source => self,
:message => args
)
end