Skip to content

Commit

Permalink
destroy nginx restart return success
Browse files Browse the repository at this point in the history
Signed-off-by: caimingxia <mingshao.cmx@alibaba-inc.com>
  • Loading branch information
MandssS committed Dec 14, 2022
1 parent 892b37c commit b664e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec/nginx/nginx_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (*NginxRestartExecutor) Name() string {

func (ng *NginxRestartExecutor) Exec(suid string, ctx context.Context, model *spec.ExpModel) *spec.Response {
if _, ok := spec.IsDestroy(ctx); ok {
return spec.ReturnFail(spec.OsCmdExecFailed, "cancel 'nginx restart' is meaningless")
return spec.ReturnSuccess("cancel 'nginx restart' is meaningless")
}
return ng.start(ctx)
}
Expand Down

0 comments on commit b664e52

Please sign in to comment.