forked from uncloud/uncloud
passing arguments dict to componenets instead of **kwargs
This commit is contained in:
parent
d9dd6b48dc
commit
31ec024be6
7 changed files with 18 additions and 44 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue