passing arguments dict to componenets instead of **kwargs

This commit is contained in:
ahmadbilalkhalid 2020-01-10 15:45:48 +05:00
commit 31ec024be6
7 changed files with 18 additions and 44 deletions

View file

@ -68,7 +68,8 @@ def track_file(file, base_dir, host):
shared.etcd_client.put(entry_key, entry_value, value_in_json=True)
def main(hostname, debug=False):
def main(arguments):
hostname = arguments['hostname']
base_dir = settings['storage']['file_dir']
# Recursively Get All Files and Folder below BASE_DIR
files = glob.glob('{}/**'.format(base_dir), recursive=True)