Skip to content

Commit

Permalink
Fix supervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
srisco committed Sep 27, 2018
1 parent e537958 commit 7c2d638
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/providers/onpremises/openfaas/function/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import subprocess
from urllib.parse import unquote_plus

os_tmp_folder = tempfile.gettempdir() + "/" + get_temp_folder()
os_tmp_folder = tempfile.gettempdir() + "/" + str(uuid.uuid4().hex)
output_folder = os_tmp_folder + "/output"

def is_s3_event(event):
Expand Down Expand Up @@ -69,9 +69,6 @@ def upload_file(bucket_name, file_path, file_key):
# obj = boto3.resource('s3').Object(bucket_name, file_key)
# obj.Acl().put(ACL='public-read')

def get_temp_folder():
return str(uuid.uuid4().hex)

def is_key_and_value_in_dictionary(key, dictionary):
return (key in dictionary) and dictionary[key] and dictionary[key] != ""

Expand Down

0 comments on commit 7c2d638

Please sign in to comment.