mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #40681 from cachedout/status_beacon
Allow status beacon to run on all operating systems
This commit is contained in:
commit
db68df23dd
@ -81,6 +81,12 @@ markers for specific list items:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
|
||||
|
||||
.. warning::
|
||||
Not all status functions are supported for every operating system. Be certain
|
||||
to check the minion log for errors after configuring this beacon.
|
||||
|
||||
'''
|
||||
|
||||
# Import python libs
|
||||
@ -91,6 +97,8 @@ import salt.exceptions
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
__virtualname__ = 'status'
|
||||
|
||||
|
||||
def __validate__(config):
|
||||
'''
|
||||
@ -102,11 +110,7 @@ def __validate__(config):
|
||||
|
||||
|
||||
def __virtual__():
|
||||
# TODO Find a way to check the existence of the module itself, not just a single func
|
||||
if 'status.w' not in __salt__:
|
||||
return (False, 'The \'status\' execution module is not available on this system')
|
||||
else:
|
||||
return True
|
||||
return __virtualname__
|
||||
|
||||
|
||||
def beacon(config):
|
||||
|
Loading…
Reference in New Issue
Block a user