summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/metatype/attributes.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/puppet/metatype/attributes.rb b/lib/puppet/metatype/attributes.rb
index b83fcdd78..3f48f22ff 100644
--- a/lib/puppet/metatype/attributes.rb
+++ b/lib/puppet/metatype/attributes.rb
@@ -477,13 +477,9 @@ class Puppet::Type
end
if obj = @parameters[name]
- # We throw a failure here, because this method is too
- # ambiguous when used with properties.
- if obj.is_a?(Puppet::Property)
- fail "[] called on a property"
- else
- return obj.value
- end
+ # Note that if this is a property, then the value is the "should" value,
+ # not the current value.
+ obj.value
else
return nil
end