def list_saved_searches(commandParameters, channel): """ """ if(len(commandParameters) > 0): results = Splunk.listSavedSearches(commandParameters[0]) else: results = Splunk.listSavedSearches() HipChat.postNotification(str(results), channel)
def listSavedSearches(params): if len(params) > 0: return splunk.listSavedSearches(params[0]) else: return splunk.listSavedSearches()