mrutkows commented on issue #306: Implicit Runtime for Java is set to 
nodejs:default
URL: 
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/306#issuecomment-322495785
 
 
   @daisy-ycguo @lzbj 
   
   In addition, the code should support named versions of runtimes (not just 
":default").
   
   For example, in the "triggerrule" use case, we have 
   ```
   actions:
       greeting:
         version: 1.0
         location: src/greeting.js
         runtime: nodejs:6
   ```
   which fails with the following error:
   ```
   2017/08/15 09:58:28 error happened during unmarshal :yaml: line 9: did not 
find expected key
   2017/08/15 09:58:28 yaml: line 9: did not find expected key
   ```
   since the  value "nodejs:6" was not recognized.  
   
   We SHOULD likely have a **global array** of known (supported) runtimes 
"kinds" (both default and versioned) and NOT use a ```switch``` statement.  
This list should match what the CLI returns (as this function was added in 
March via https://github.com/apache/incubator-openwhisk/issues/335).  
   
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to