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.
|
# or Puppet catalog compilation will fail with duplicate resources.
|
||||||
#
|
#
|
||||||
class cloudkitty::config (
|
class cloudkitty::config (
|
||||||
$cloudkitty_config = {},
|
Hash $cloudkitty_config = {},
|
||||||
$cloudkitty_api_paste_ini = {},
|
Hash $cloudkitty_api_paste_ini = {},
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include cloudkitty::deps
|
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_config', $cloudkitty_config)
|
||||||
create_resources('cloudkitty_api_paste_ini', $cloudkitty_api_paste_ini)
|
create_resources('cloudkitty_api_paste_ini', $cloudkitty_api_paste_ini)
|
||||||
}
|
}
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
# Defaults to 'utf8_general_ci'
|
# Defaults to 'utf8_general_ci'
|
||||||
#
|
#
|
||||||
class cloudkitty::db::mysql(
|
class cloudkitty::db::mysql(
|
||||||
$password,
|
String[1] $password,
|
||||||
$dbname = 'cloudkitty',
|
$dbname = 'cloudkitty',
|
||||||
$user = 'cloudkitty',
|
$user = 'cloudkitty',
|
||||||
$host = '127.0.0.1',
|
$host = '127.0.0.1',
|
||||||
@@ -45,8 +45,6 @@ class cloudkitty::db::mysql(
|
|||||||
|
|
||||||
include cloudkitty::deps
|
include cloudkitty::deps
|
||||||
|
|
||||||
validate_legacy(String, 'validate_string', $password)
|
|
||||||
|
|
||||||
::openstacklib::db::mysql { 'cloudkitty':
|
::openstacklib::db::mysql { 'cloudkitty':
|
||||||
user => $user,
|
user => $user,
|
||||||
password => $password,
|
password => $password,
|
||||||
|
Reference in New Issue
Block a user