You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by pd...@apache.org on 2018/11/14 18:17:34 UTC

[incubator-openwhisk-wskdeploy] branch master updated: adding pkg and action version number with interpolation (#1009)

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 736b4c7  adding pkg and action version number with interpolation (#1009)
736b4c7 is described below

commit 736b4c790ca8c677916ada580b5c3feba46e291e
Author: Priti Desai <pd...@us.ibm.com>
AuthorDate: Wed Nov 14 10:17:29 2018 -0800

    adding pkg and action version number with interpolation (#1009)
---
 parsers/manifest_parser.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/parsers/manifest_parser.go b/parsers/manifest_parser.go
index 619cf91..dcbc0ed 100644
--- a/parsers/manifest_parser.go
+++ b/parsers/manifest_parser.go
@@ -381,6 +381,7 @@ func (dm *YAMLParser) ComposePackage(pkg Package, packageName string, filePath s
 		wskprint.PrintOpenWhiskWarning(warningString)
 		pkg.Version = DEFAULT_PACKAGE_VERSION
 	}
+	pag.Version = wskenv.ConvertSingleName(pkg.Version)
 
 	//License is a mandatory value
 	//set license to unknown if it is an empty string
@@ -933,6 +934,7 @@ func (dm *YAMLParser) ComposeActions(manifestFilePath string, actions map[string
 		wskaction.Name = actionName
 		pub := false
 		wskaction.Publish = &pub
+		wskaction.Version = wskenv.ConvertSingleName(action.Version)
 
 		record := utils.ActionRecord{Action: wskaction, Packagename: packageName, Filepath: actionFilePath}
 		listOfActions = append(listOfActions, record)