Skip to content

Commit 5173d4a

Browse files
authored
Merge pull request #132 from Thomas-Franklin/const_defined_bug
(PDK-1209) setting inherited const_defined lookup to false
2 parents f691b8a + bacbe6a commit 5173d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/resource_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def register_type(definition)
4646
# this has to happen before Puppet::Type.newtype starts autoloading providers
4747
# it also needs to be guarded against the namespace already being defined by something
4848
# else to avoid ruby warnings
49-
unless Puppet::Provider.const_defined?(class_name_from_type_name(definition[:name]))
49+
unless Puppet::Provider.const_defined?(class_name_from_type_name(definition[:name]), false)
5050
Puppet::Provider.const_set(class_name_from_type_name(definition[:name]), Module.new)
5151
end
5252

0 commit comments

Comments
 (0)