puppet-resource_api 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/puppet/resource_api/type_definition.rb +8 -0
- data/lib/puppet/resource_api/version.rb +1 -1
- data/misc/ANNOUNCEMENT_TEMPLATE.md +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: 42a8295bef7527d8b9a309e22c9b650bf2f0e62213be3bba7cca506ecd5b745b
|
4
|
+
data.tar.gz: b1630d97f5a1c13f5377f67e30818dbcd41cc31c6f1c0cbc5e8dd75acff51cb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d3741e8c50ecaa89ccc3e7dd6f8e0a926602427731d1a4755377e45ab8aab1de46ed2c2c020d455516825509cf9e4159e9890c86d4b11ddbe8236b734a41486
|
7
|
+
data.tar.gz: 4c55d2a4b01c0dd1675c49c42752643c037b68eb5fd0c66ce65a152d1d93129a09cb33bdb967ad81eef36d7622c5a7a66d9642d86753d6e807135895af17e07c
|
data/Gemfile
CHANGED
@@ -16,7 +16,7 @@ group :tests do
|
|
16
16
|
# unless we're dealing with jruby...
|
17
17
|
if RUBY_PLATFORM == 'java'
|
18
18
|
# load any rubocop version that works on java for the Rakefile
|
19
|
-
gem 'rubocop'
|
19
|
+
gem 'rubocop', '0.41.2'
|
20
20
|
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
|
21
21
|
gem 'rubocop', '0.57.2'
|
22
22
|
# the last version of parallel to support ruby 2.1
|
data/README.md
CHANGED
@@ -359,7 +359,7 @@ To do so, follow these instructions from a current `master` checkout:
|
|
359
359
|
* run `rake changelog`
|
360
360
|
* double check the PRs to make sure they're all tagged correctly (using the new CHANGELOG for cross-checking)
|
361
361
|
* Check README and other materials for up-to-date-ness
|
362
|
-
* Commit changes with title "Release prep for
|
362
|
+
* Commit changes with title "Release prep for \<VERSION>"
|
363
363
|
* Upload and PR the release-prep branch to the puppetlabs GitHub repo
|
364
364
|
* Check that CI is green and merge the PR
|
365
365
|
* Run `rake release[upstream]` to release from your checkout
|
@@ -63,6 +63,10 @@ module Puppet::ResourceApi
|
|
63
63
|
error_msg = "The following mandatory attributes were not provided:\n * " + missing_attrs.join(", \n * ")
|
64
64
|
raise Puppet::ResourceError, error_msg if missing_attrs.any?
|
65
65
|
end
|
66
|
+
|
67
|
+
def notify_schema_errors(message)
|
68
|
+
raise Puppet::DevError, message
|
69
|
+
end
|
66
70
|
end
|
67
71
|
|
68
72
|
# Base RSAPI schema Object
|
@@ -144,6 +148,10 @@ module Puppet::ResourceApi
|
|
144
148
|
|
145
149
|
return if rejected_keys.empty? && bad_values.empty?
|
146
150
|
|
151
|
+
notify_schema_errors(message)
|
152
|
+
end
|
153
|
+
|
154
|
+
def notify_schema_errors(message)
|
147
155
|
if Puppet.settings[:strict] == :off
|
148
156
|
Puppet.debug(message)
|
149
157
|
elsif Puppet.settings[:strict] == :warning
|