diff options
author | Luke Kanies <luke@madstop.com> | 2008-12-11 17:59:41 -0600 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-12-18 11:10:23 -0600 |
commit | 91ff7c1f9c591936b0d39349baf0d1602a69923b (patch) | |
tree | 5cb4018e95bebc276790c9d78d3e75f8f4e08147 /lib/puppet/resource/reference.rb | |
parent | fae30756e48184dfc8238dcfe80b843f981b6070 (diff) | |
download | puppet-91ff7c1f9c591936b0d39349baf0d1602a69923b.tar.gz puppet-91ff7c1f9c591936b0d39349baf0d1602a69923b.tar.xz puppet-91ff7c1f9c591936b0d39349baf0d1602a69923b.zip |
TransObject is nearly deprecated now.
This is all of the plumbing work, the only real thing
left to do is to fix the Settings class so that it
uses Puppet::Resource instances instead of TransObject
and TransBucket.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/resource/reference.rb')
-rw-r--r-- | lib/puppet/resource/reference.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/puppet/resource/reference.rb b/lib/puppet/resource/reference.rb index d17b3e558..7f33160bd 100644 --- a/lib/puppet/resource/reference.rb +++ b/lib/puppet/resource/reference.rb @@ -24,7 +24,9 @@ class Puppet::Resource::Reference def initialize(argtype, argtitle = nil) if argtitle.nil? self.title = argtype - raise ArgumentError, "No title provided and title '%s' is not a valid resource reference" % argtype if self.title == argtype + if self.title == argtype + raise ArgumentError, "No title provided and title '%s' is not a valid resource reference" % argtype + end else # This will set @type if it looks like a resource reference. self.title = argtitle |