diff --git a/manifests/config.pp b/manifests/config.pp index 2795cd073..7566beb86 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -44,10 +44,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 8c9b39a26..6ff223a3c 100644 --- a/spec/classes/rabbitmq_spec.rb +++ b/spec/classes/rabbitmq_spec.rb @@ -108,14 +108,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'