Changed elastic param from file to path to be more consistent with elastic fields.

This commit is contained in:
2019-05-01 21:16:45 +02:00
parent 02f4b1b371
commit 1846d15cac

View File

@@ -7,7 +7,7 @@ from logger import logger
from utils import getConfig
def getFiles(path, host=None, user=None):
logger.info('Getting filenames from path: {}'.format(path), es={'filename': path})
logger.info('Getting filenames from path: {}'.format(path), es={'path': path})
if (host and user):
cmd = "ssh {}@{} ls '{}'".format(user, host, path)
else: