Skip to content

Commit

Permalink
fix:support for destroying experiments through uid
Browse files Browse the repository at this point in the history
Signed-off-by: Yuaninga <1846225041@qq.com>
  • Loading branch information
Yuaninga authored and MandssS committed Jul 1, 2024
1 parent 7464929 commit 8092fa9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions exec/nginx/nginx_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,6 @@ func createNewConfig(config *parser.Config, locator string, newKV string) (strin
}

func (ng *NginxConfigExecutor) stop(ctx context.Context, model *spec.ExpModel) *spec.Response {
mode := model.ActionFlags["mode"]
if mode != "" {
return spec.ResponseFailWithFlags(spec.ParameterInvalid, "--mode", mode, fmt.Sprintf("--mode cannot be %s when destroying Nginx config experiment", mode))
}

nginxPath := model.ActionFlags["nginx-path"]
return reloadNginxConfig(ng.channel, ctx, nginxPath)
}
Expand Down

0 comments on commit 8092fa9

Please sign in to comment.