This is an automated email from the ASF dual-hosted git repository. daisyguo 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 c08b0f1 Remove the trigger if feed fails to be called (#534) c08b0f1 is described below commit c08b0f112db443e7e7ebbf6eeb2a69a5018af288 Author: Vincent <s...@us.ibm.com> AuthorDate: Thu Sep 21 23:15:16 2017 -0400 Remove the trigger if feed fails to be called (#534) If feed fails to be called, we need to remove the trigger to keep the environment clean. --- deployers/servicedeployer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployers/servicedeployer.go b/deployers/servicedeployer.go index 6c8059e..c52f377 100644 --- a/deployers/servicedeployer.go +++ b/deployers/servicedeployer.go @@ -547,6 +547,8 @@ func (deployer *ServiceDeployer) createFeedAction(trigger *whisk.Trigger, feedNa deployer.Client.Namespace = namespace if err != nil { + // Remove the created trigger + deployer.Client.Triggers.Delete(trigger.Name) wskErr := err.(*whisk.WskError) errString := wski18n.T("Got error creating trigger feed with error message: {{.err}} and error code: {{.code}}.\n", map[string]interface{}{"err": wskErr.Error(), "code": strconv.Itoa(wskErr.ExitCode)}) -- To stop receiving notification emails like this one, please contact ['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].