This is an automated email from the ASF dual-hosted git repository. mrutkowski 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 51fd441 Resolves #795 (#796) 51fd441 is described below commit 51fd4415677cd197e9cd5a9ad420585f8a91d5f9 Author: kpavel <kpa...@il.ibm.com> AuthorDate: Tue Mar 13 16:46:00 2018 +0200 Resolves #795 (#796) --- deployers/servicedeployer.go | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/deployers/servicedeployer.go b/deployers/servicedeployer.go index 0ef55d8..dfffb85 100644 --- a/deployers/servicedeployer.go +++ b/deployers/servicedeployer.go @@ -20,12 +20,6 @@ package deployers import ( "bufio" "fmt" - "github.com/apache/incubator-openwhisk-client-go/whisk" - "github.com/apache/incubator-openwhisk-wskdeploy/parsers" - "github.com/apache/incubator-openwhisk-wskdeploy/utils" - "github.com/apache/incubator-openwhisk-wskdeploy/wskderrors" - "github.com/apache/incubator-openwhisk-wskdeploy/wski18n" - "github.com/apache/incubator-openwhisk-wskdeploy/wskprint" "net/http" "os" "path" @@ -34,6 +28,13 @@ import ( "strings" "sync" "time" + + "github.com/apache/incubator-openwhisk-client-go/whisk" + "github.com/apache/incubator-openwhisk-wskdeploy/parsers" + "github.com/apache/incubator-openwhisk-wskdeploy/utils" + "github.com/apache/incubator-openwhisk-wskdeploy/wskderrors" + "github.com/apache/incubator-openwhisk-wskdeploy/wski18n" + "github.com/apache/incubator-openwhisk-wskdeploy/wskprint" ) const ( @@ -887,6 +888,14 @@ func (deployer *ServiceDeployer) createRule(rule *whisk.Rule) error { return createWhiskClientError(err.(*whisk.WskError), response, parsers.YAML_KEY_RULE, true) } + // Consecutive deployments of manifest containing trigger with feed action (and rule) result in inactive + // rule. The rule seems to become inactive when its trigger get deleted (part of the wskdeploy feed action update) + // Currently simply always setting rule status to active in case not specified implicitly + _, _, err = deployer.Client.Rules.SetState(rule.Name, "active") + if err != nil { + return err + } + displayPostprocessingInfo(parsers.YAML_KEY_RULE, rule.Name, true) return nil } -- To stop receiving notification emails like this one, please contact mrutkow...@apache.org.