diff --git a/manifests/config.pp b/manifests/config.pp index 19d6de52e..5bf4cdc47 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -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 diff --git a/spec/classes/rabbitmq_spec.rb b/spec/classes/rabbitmq_spec.rb index 7bef020c9..66e72846c 100644 --- a/spec/classes/rabbitmq_spec.rb +++ b/spec/classes/rabbitmq_spec.rb @@ -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'