Skip to content

Commit

Permalink
modules.esxi: __virtual__ return err msg.
Browse files Browse the repository at this point in the history
Updated message when return False if is not running in a proxy minion.
  • Loading branch information
abednarik committed Dec 23, 2015
1 parent 2826403 commit b1a66ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/modules/esxi.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def __virtual__():
'''
if salt.utils.is_proxy():
return __virtualname__
return False
return (False, 'The esxi execution module failed to load: '
'only available on proxy minions.')


def cmd(command, *args, **kwargs):
Expand Down

0 comments on commit b1a66ad

Please sign in to comment.