puppet-resource_api 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/puppet/resource_api.rb +4 -4
- data/lib/puppet/resource_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 306133cd86d46867056bd6bf220111b843d0edae82af69e3e428aba627377f56
|
4
|
+
data.tar.gz: 7652de8fdc6c86124994ba0b66d78a403baa779eb4b27ed2de0f1862cb7867be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45dd940aa1b6cd7aa5378fb2a401158dbb482c6d3171925bcb2ad3a68ed2e017dff6738c6d40c4ee061a6f25a2b4ba582c480ef103a7ebda041f3a7d5ca9657f
|
7
|
+
data.tar.gz: 725ee6aeb23a0ad23905b5f6e39c2d66d24461976a6318d35db4bd0839d70314f743e84cefa4ca63cfe11b8f49099b1a2f9a6a1d4bae987826b95f9545c8a75b
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
3
3
|
All significant changes to this repo will be summarized in this file.
|
4
4
|
|
5
5
|
|
6
|
+
## [v1.6.2](https://github.com/puppetlabs/puppet-resource_api/tree/v1.6.2) (2018-10-25)
|
7
|
+
[Full Changelog](https://github.com/puppetlabs/puppet-resource_api/compare/v1.6.1...v1.6.2)
|
8
|
+
|
9
|
+
**Fixed bugs:**
|
10
|
+
|
11
|
+
- \(PDK-1209\) Fix the other call-sites of const\_defined? and const\_get [\#134](https://github.com/puppetlabs/puppet-resource_api/pull/134) ([DavidS](https://github.com/DavidS))
|
12
|
+
|
13
|
+
**Merged pull requests:**
|
14
|
+
|
15
|
+
- Release prep for v1.6.1 [\#133](https://github.com/puppetlabs/puppet-resource_api/pull/133) ([DavidS](https://github.com/DavidS))
|
16
|
+
|
6
17
|
## [v1.6.1](https://github.com/puppetlabs/puppet-resource_api/tree/v1.6.1) (2018-10-25)
|
7
18
|
[Full Changelog](https://github.com/puppetlabs/puppet-resource_api/compare/v1.6.0...v1.6.1)
|
8
19
|
|
data/lib/puppet/resource_api.rb
CHANGED
@@ -543,16 +543,16 @@ MESSAGE
|
|
543
543
|
def load_default_provider(class_name, type_name_sym)
|
544
544
|
# loads the "puppet/provider/#{type_name}/#{type_name}" file through puppet
|
545
545
|
Puppet::Type.type(type_name_sym).provider(type_name_sym)
|
546
|
-
Puppet::Provider.const_get(class_name).const_get(class_name)
|
546
|
+
Puppet::Provider.const_get(class_name, false).const_get(class_name, false)
|
547
547
|
end
|
548
548
|
module_function :load_default_provider # rubocop:disable Style/AccessModifierDeclarations
|
549
549
|
|
550
550
|
def load_device_provider(class_name, type_name_sym, device_class_name, device_name_sym)
|
551
551
|
# loads the "puppet/provider/#{type_name}/#{device_name}" file through puppet
|
552
552
|
Puppet::Type.type(type_name_sym).provider(device_name_sym)
|
553
|
-
provider_module = Puppet::Provider.const_get(class_name)
|
554
|
-
if provider_module.const_defined?(device_class_name)
|
555
|
-
provider_module.const_get(device_class_name)
|
553
|
+
provider_module = Puppet::Provider.const_get(class_name, false)
|
554
|
+
if provider_module.const_defined?(device_class_name, false)
|
555
|
+
provider_module.const_get(device_class_name, false)
|
556
556
|
else
|
557
557
|
load_default_provider(class_name, type_name_sym)
|
558
558
|
end
|