catch unsupported osfamily
Previously, param lookups were returning nil. This leads to a more obvious error message.
This commit is contained in:
parent
104baec9ea
commit
ac334c1f9d
@ -4,8 +4,7 @@ class cinder::params {
|
||||
$cinder_conf = '/etc/cinder/cinder.conf'
|
||||
$cinder_paste_api_ini = '/etc/cinder/api-paste.ini'
|
||||
|
||||
case $::osfamily {
|
||||
'Debian': {
|
||||
if $::osfamily == 'Debian' {
|
||||
$package_name = 'cinder-common'
|
||||
$api_package = 'cinder-api'
|
||||
$api_service = 'cinder-api'
|
||||
@ -17,7 +16,7 @@ class cinder::params {
|
||||
|
||||
$tgt_package_name = 'tgt'
|
||||
$tgt_service_name = 'tgt'
|
||||
|
||||
}
|
||||
} else {
|
||||
fail("unsuported osfamily ${::osfamily}, currently Debian is the only supported platform")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user