openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantan...@apache.org
Subject [incubator-openwhisk] branch master updated: Allow invoke helper to work with tgz files. (#3084)
Date Sat, 09 Dec 2017 19:16:30 GMT
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 511a9d1  Allow invoke helper to work with tgz files. (#3084)
511a9d1 is described below

commit 511a9d123a73bc7d14e2e5170f02f880d7b4b369
Author: rodric rabbah <rodric@gmail.com>
AuthorDate: Sat Dec 9 14:16:27 2017 -0500

    Allow invoke helper to work with tgz files. (#3084)
---
 actionRuntimes/actionProxy/invoke.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/actionRuntimes/actionProxy/invoke.py b/actionRuntimes/actionProxy/invoke.py
index 1c0d9ad..df68133 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

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message