replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in v9.0.0 from puppetlabs-stdlib. Change-Id: I562568fe0e68b98bd80e4b7e1d20644a54d086df
This commit is contained in:
@@ -24,15 +24,12 @@
|
||||
# or Puppet catalog compilation will fail with duplicate resources.
|
||||
#
|
||||
class cloudkitty::config (
|
||||
$cloudkitty_config = {},
|
||||
$cloudkitty_api_paste_ini = {},
|
||||
Hash $cloudkitty_config = {},
|
||||
Hash $cloudkitty_api_paste_ini = {},
|
||||
) {
|
||||
|
||||
include cloudkitty::deps
|
||||
|
||||
validate_legacy(Hash, 'validate_hash', $cloudkitty_config)
|
||||
validate_legacy(Hash, 'validate_hash', $cloudkitty_api_paste_ini)
|
||||
|
||||
create_resources('cloudkitty_config', $cloudkitty_config)
|
||||
create_resources('cloudkitty_api_paste_ini', $cloudkitty_api_paste_ini)
|
||||
}
|
||||
|
@@ -34,7 +34,7 @@
|
||||
# Defaults to 'utf8_general_ci'
|
||||
#
|
||||
class cloudkitty::db::mysql(
|
||||
$password,
|
||||
String[1] $password,
|
||||
$dbname = 'cloudkitty',
|
||||
$user = 'cloudkitty',
|
||||
$host = '127.0.0.1',
|
||||
@@ -45,8 +45,6 @@ class cloudkitty::db::mysql(
|
||||
|
||||
include cloudkitty::deps
|
||||
|
||||
validate_legacy(String, 'validate_string', $password)
|
||||
|
||||
::openstacklib::db::mysql { 'cloudkitty':
|
||||
user => $user,
|
||||
password => $password,
|
||||
|
Reference in New Issue
Block a user