From aec2908348c52a3759bcb4185e8c34daca2d24b8 Mon Sep 17 00:00:00 2001 From: Jorge Schrauwen Date: Sat, 14 Nov 2015 10:20:39 +0000 Subject: [PATCH] __virtual__() now returns a message for vmadm --- salt/modules/smartos_vmadm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/salt/modules/smartos_vmadm.py b/salt/modules/smartos_vmadm.py index eff705f2a9..7645c38222 100644 --- a/salt/modules/smartos_vmadm.py +++ b/salt/modules/smartos_vmadm.py @@ -50,7 +50,12 @@ def __virtual__(): ''' if salt.utils.is_smartos_globalzone() and _check_vmadm(): return __virtualname__ - return False + return ( + False, + '{0} module can only be loaded on SmartOS computed nodes'.format( + __virtualname__ + ) + ) def _exit_status(retcode):