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 2018/12/11 19:43:37 UTC

[GitHub] macdonst removed a comment on issue #143: Updating package parameters doesn't seem to take affect

macdonst removed a comment on issue #143: Updating package parameters doesn't seem to take affect
URL: https://github.com/apache/incubator-openwhisk-client-js/issues/143#issuecomment-446335481
 
 
   @starpit here is a smaller example that still doesn't work that is based off the sample code from the README.
   
   ```
   const openwhisk = require('openwhisk');
   
   function extractPackageName(action) {
     return action.split('/')[2];
   }
   
   function main(params) {
     const ow = openwhisk();
     const packageName = extractPackageName(process.env['__OW_ACTION_NAME']);
       
   const package1 = {
     parameters: [
       {key: "colour", value: "green"},
       {key: "name", value: "Freya"}
     ]
   }
   
   return ow.packages.update({packageName, package1}).then(newPackage => {
     console.log('updated package:');
     console.log(newPackage);
     return { ...params };
   }).catch(err => {
     console.error('failed to update package', err);
     return err;
   });
   }
   
   exports.main = main;
   ```

----------------------------------------------------------------
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