mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules.status: add reason to __virtual__ return
This commit is contained in:
parent
48e7beb0eb
commit
35ba7da470
1 changed files with 3 additions and 4 deletions
|
@ -24,15 +24,14 @@ from salt.utils.network import host_to_ip as _host_to_ip
|
|||
from salt.utils.network import remote_port_tcp as _remote_port_tcp
|
||||
from salt.ext.six.moves import zip
|
||||
|
||||
|
||||
__virtualname__ = 'status'
|
||||
__opts__ = {}
|
||||
|
||||
|
||||
# TODO: Make this module support windows hosts
|
||||
def __virtual__():
|
||||
if salt.utils.is_windows():
|
||||
return False
|
||||
return True
|
||||
return (False, 'Cannot load status module on windows')
|
||||
return __virtualname__
|
||||
|
||||
|
||||
def _number(text):
|
||||
|
|
Loading…
Add table
Reference in a new issue