def query(term): ''' Query the search system ''' search = salt.search.Search(__opts__) result = search.query(term) salt.output.display_output(result, 'pprint', __opts__) return result
def query(term): ''' Query the search system CLI Example: .. code-block:: bash salt-run search.query foo ''' search = salt.search.Search(__opts__) result = search.query(term) return result
def query(term): ''' Query the search system CLI Example: .. code-block:: bash salt-run search.query foo ''' search = salt.search.Search(__opts__) result = search.query(term) salt.output.display_output(result, 'pprint', __opts__) return result