Fix issue of failed to modify configs & secrets

This commit is contained in:
cuigh 2017-12-14 11:57:38 +08:00
parent 805140a16b
commit 1c45382cf4

View File

@ -179,6 +179,7 @@ func serviceCreate(ctx web.Context) error {
if err != nil {
return err
}
info.Normalize()
if info.Registry != "" {
var registry *model.Registry
@ -234,6 +235,7 @@ func serviceUpdate(ctx web.Context) error {
err := ctx.Bind(info)
if err == nil {
info.Name = ctx.P("name")
info.Normalize()
err = docker.ServiceUpdate(info)
}