clouds: validate parameter types
Change-Id: I11c9b55fc58a79172493e37dbd455edee42cbcb0
This commit is contained in:
@@ -48,17 +48,17 @@
|
|||||||
# Defaults to {}
|
# Defaults to {}
|
||||||
#
|
#
|
||||||
define openstacklib::clouds(
|
define openstacklib::clouds(
|
||||||
$username,
|
String[1] $username,
|
||||||
$password,
|
String[1] $password,
|
||||||
$auth_url,
|
Stdlib::HTTPUrl $auth_url,
|
||||||
$path = $name,
|
Stdlib::Absolutepath $path = $name,
|
||||||
$user_domain_name = 'Default',
|
String[1] $user_domain_name = 'Default',
|
||||||
$project_name = undef,
|
Optional[String[1]] $project_name = undef,
|
||||||
$project_domain_name = 'Default',
|
String[1] $project_domain_name = 'Default',
|
||||||
$system_scope = undef,
|
Optional[String[1]] $system_scope = undef,
|
||||||
$interface = undef,
|
Optional[Enum['public', 'internal', 'admin']] $interface = undef,
|
||||||
$region_name = undef,
|
Optional[String[1]] $region_name = undef,
|
||||||
$api_versions = {},
|
Hash $api_versions = {},
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if !$project_name and !$system_scope {
|
if !$project_name and !$system_scope {
|
||||||
|
Reference in New Issue
Block a user