Skip to content

Commit

Permalink
Merge pull request redhat-openstack#233 from michalskalski/master
Browse files Browse the repository at this point in the history
Use warning instead of notify when inform about deprecation.
  • Loading branch information
cmurphy committed Dec 4, 2014
2 parents f8b9936 + b377b82 commit 983a2aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
5 changes: 1 addition & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@

# Handle deprecated option.
if $cluster_disk_nodes != [] {
notify { 'cluster_disk_nodes':
message => 'WARNING: The cluster_disk_nodes is deprecated.
Use cluster_nodes instead.',
}
warning('The $cluster_disk_nodes is deprecated. Use $cluster_nodes instead.')
$r_cluster_nodes = $cluster_disk_nodes
} else {
$r_cluster_nodes = $cluster_nodes
Expand Down
8 changes: 0 additions & 8 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@
end
end

context 'deprecated parameters' do
describe 'cluster_disk_nodes' do
let(:params) {{ :cluster_disk_nodes => ['node1', 'node2'] }}

it { should contain_notify('cluster_disk_nodes') }
end
end

describe 'manages configuration directory correctly' do
it { should contain_file('/etc/rabbitmq').with(
'ensure' => 'directory'
Expand Down

0 comments on commit 983a2aa

Please sign in to comment.