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/11/14 18:17:31 UTC
[GitHub] pritidesai closed pull request #1009: adding pkg and action version
number with interpolation capability
pritidesai closed pull request #1009: adding pkg and action version number with interpolation capability
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/pull/1009
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/parsers/manifest_parser.go b/parsers/manifest_parser.go
index 619cf911..dcbc0edd 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)
----------------------------------------------------------------
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