rabbah commented on a change in pull request #119: Ack and versioning [work in 
progress]
URL: 
https://github.com/apache/openwhisk-runtime-go/pull/119#discussion_r370102232
 
 

 ##########
 File path: openwhisk/actionProxy.go
 ##########
 @@ -72,6 +72,18 @@ func NewActionProxy(baseDir string, compiler string, 
outFile *os.File, errFile *
 
 //SetEnv sets the environment
 func (ap *ActionProxy) SetEnv(env map[string]interface{}) {
+       // Propagate proxy version
+       ap.env["__OW_PROXY_VERSION"] = Version
+       // propagate OW_EXECUTION_ENV as  __OW_EXECUTION_ENV
+       ee := os.Getenv("OW_EXECUTION_ENV")
+       if ee != "" {
+               ap.env["__OW_EXECUTION_ENV"] = ee
+       }
+       // require an ack
+       wa := os.Getenv("OW_WAIT_FOR_ACK")
+       if wa != "" {
+               ap.env["__OW_WAIT_FOR_ACK"] = wa
 
 Review comment:
   does this need to be re-exported? it's internal.

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


With regards,
Apache Git Services

Reply via email to