Skip to content

Commit

Permalink
Deprecate cs_primitive.rb[manage_target_role]
Browse files Browse the repository at this point in the history
semver rules tell us that it reguires a .y release

Signed-off-by: Julien Pivotto <[email protected]>
  • Loading branch information
roidelapluie committed Jun 14, 2016
1 parent 84e87e8 commit 63613f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2016-06-14 - Release 1.2.0
### Summary
- Deprecate Cs\_primitive[manage\_target\_role] in favour of
Cs\_primitive[unmanaged_metadata]

## 2016-06-13 - Release 1.1.0
### Summary
- Move helpers functions to PuppetX ruby namespace (#259)
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/type/cs_primitive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def insync?(is)
if @resource.manage_target_role?
super
else
Puppet.deprecation_warning 'cs_primitive.rb[manage_target_role]: manage_target_role is deprecated and will be remove in the next major release. It will be replaced by unmanaged_metadata => ["target-role"]'
super(is.reject { |k| k == 'target-role' })
end
end
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppet-corosync",
"version": "1.1.1-rc0",
"version": "1.2.0",
"author": "voxpupuli",
"summary": "This module is a set of manifests and types/providers for quickly setting up highly available clusters using Corosync",
"license": "Apache-2.0",
Expand Down

0 comments on commit 63613f0

Please sign in to comment.