From 83ea4f1f4534a18e115153c48c903c51876f1fa7 Mon Sep 17 00:00:00 2001 From: zhulingjie Date: Thu, 13 Sep 2018 20:10:25 -0400 Subject: [PATCH] Provide more useful fail message Change-Id: Iced735d76b3bdaef795faf9599da453a20b091f1 Closes-Bug: #1792719 --- manifests/params.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index a153131..28faee2 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -25,7 +25,8 @@ class oslo::params { $python_memcache_package_name = 'python-memcache' } default: { - fail("Unsupported osfamily: ${::osfamily} operatingsystem") + fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \ +module ${module_name} only support osfamily RedHat and Debian") } } # Case $::osfamily