Updated status.ping_master docstring

This commit is contained in:
Dmitry Kuzmenko 2016-03-18 11:15:35 +03:00
parent 942b71b8b8
commit 52ba528c72

View File

@ -833,9 +833,16 @@ def master(master=None, connected=True):
def ping_master(master):
'''
Sends ping request to the given master.
Fires '__master_alive' event on success.
.. versionadded:: 2016.3.0
Sends ping request to the given master. Fires '__master_alive' event on success.
Returns bool result.
CLI Example:
.. code-block:: bash
salt '*' status.ping_master localhost
'''
if master is None or master == '':
return False