diff --git a/manifests/profile/params.pp b/manifests/profile/params.pp index 9b1927a1..1267d141 100644 --- a/manifests/profile/params.pp +++ b/manifests/profile/params.pp @@ -240,7 +240,8 @@ class ceph::profile::params ( $fs_name = undef, $rbd_default_features = undef, ) { - validate_hash($client_keys) + + validate_legacy(Hash, 'validate_hash', $client_keys) if $authentication_type == 'cephx' and empty($client_keys) { fail("client_keys must be provided when using authentication_type = 'cephx'") diff --git a/spec/classes/ceph_profile_params_spec.rb b/spec/classes/ceph_profile_params_spec.rb index 3b36f81c..6eb41512 100644 --- a/spec/classes/ceph_profile_params_spec.rb +++ b/spec/classes/ceph_profile_params_spec.rb @@ -28,7 +28,7 @@ describe 'ceph::profile::params' do }" end - it { should raise_error Puppet::Error, /is not a Hash/ } + it { should raise_error(Puppet::Error) } end describe "should fail when using cephx without client_keys" do