Skip to content

Commit 03390eb

Browse files
author
Ando Roots
committed
Remove selftest functionality
This avoids requiring any additional privileges to update watchers
1 parent 198f88f commit 03390eb

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

lib/watcherimporter.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ def __init__(self, elastic, watcher_dir, logger):
1313
self.watcher_dir = watcher_dir
1414
self.elastic = elastic
1515

16-
def selftest(self):
17-
self.elastic.info()
18-
1916
@staticmethod
2017
def read_json_file(file_path):
2118
with open(file_path) as f:

watchback.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,8 @@ def main():
9797

9898
importer = WatcherImporter(elastic, args.watcher_dir, logger)
9999

100-
try:
101-
importer.selftest()
102-
except Exception as e:
103-
logger.fatal('Unable to connect to Elasticsearch.')
104-
logger.fatal(str(e))
105-
sys.exit(1)
106-
107100
importer.run(args.dry_run)
108101
logger.info('Finished importing Watchers')
109102

110-
111103
if __name__ == '__main__':
112104
main()

0 commit comments

Comments
 (0)