diff --git a/manifests/db/mysql/host_access.pp b/manifests/db/mysql/host_access.pp index 40cbdbe8..af3b63ea 100644 --- a/manifests/db/mysql/host_access.pp +++ b/manifests/db/mysql/host_access.pp @@ -40,7 +40,9 @@ define openstacklib::db::mysql::host_access ( $create_grant = true, $tls_options = ['NONE'], ) { - validate_re($title, '_', 'Title must be $dbname_$host') + + validate_legacy(Pattern[/_/], 'validate_re', $title, + ['_', 'Title must be $dbname_$host']) $host = inline_template('<%= @title.split("_").last.downcase %>') diff --git a/manifests/policy.pp b/manifests/policy.pp index b1114275..091694cd 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -12,8 +12,7 @@ class openstacklib::policy ( $policies = {}, ) { - validate_hash($policies) + validate_legacy(Hash, 'validate_hash', $policies) create_resources('openstacklib::policy::base', $policies) - } diff --git a/manifests/policyrcd.pp b/manifests/policyrcd.pp index 58329923..171830cf 100644 --- a/manifests/policyrcd.pp +++ b/manifests/policyrcd.pp @@ -25,7 +25,7 @@ class openstacklib::policyrcd( $services ) { - validate_array($services) + validate_legacy(Array, 'validate_array', $services) if $::osfamily == 'Debian' { # We put this out there so openstack services wont auto start