|
@@ -33,7 +33,11 @@ class Collector(Thread) :
|
|
|
for id in ['apps','folders']:
|
|
|
if id in SYS_ARGS :
|
|
|
SYS_ARGS[id] = SYS_ARGS[id].split(',')
|
|
|
-
|
|
|
+ #
|
|
|
+ # Let's open the file with the key (nothing else should be in the file
|
|
|
+ f = open(SYS_ARGS['key'])
|
|
|
+ SYS_ARGS['key'] = f.read()
|
|
|
+ f.close()
|
|
|
|
|
|
headers = {"key":SYS_ARGS["key"],"id":SYS_ARGS["id"]} #,"scope":json.dumps(scope)}
|
|
|
headers['content-type'] = 'application/json'
|