From 57f637586b738bd35838384c8a9713c0216b6ca1 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Wed, 2 Dec 2015 18:05:03 -0700 Subject: [PATCH] Adds elasticsearch warning --- salt/modules/elasticsearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/elasticsearch.py b/salt/modules/elasticsearch.py index 0babf23287..ba7fd3c6a7 100644 --- a/salt/modules/elasticsearch.py +++ b/salt/modules/elasticsearch.py @@ -63,7 +63,7 @@ def __virtual__(): Only load if elasticsearch libraries exist. ''' if not HAS_ELASTICSEARCH: - return False + return (False, 'Cannot load module elasticsearch: elasticsearch libraries not found') return True