You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/12/09 19:16:31 UTC

[GitHub] csantanapr closed pull request #3084: Allow invoke helper to work with tgz files.

csantanapr closed pull request #3084: Allow invoke helper to work with tgz files.
URL: https://github.com/apache/incubator-openwhisk/pull/3084
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/actionRuntimes/actionProxy/invoke.py b/actionRuntimes/actionProxy/invoke.py
index 1c0d9adce3..df68133894 100755
--- a/actionRuntimes/actionProxy/invoke.py
+++ b/actionRuntimes/actionProxy/invoke.py
@@ -69,7 +69,7 @@ def init(args):
     main = args[1] if len(args) == 2 else "main"
     args = args[0] if len(args) >= 1 else None
 
-    if args and args.endswith(".zip"):
+    if args and (args.endswith(".zip") or args.endswith("tgz")):
         with open(args, "rb") as fp:
             contents = fp.read().encode("base64")
         binary = True


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services