mirror of
https://github.com/cuigh/swirl
synced 2025-01-31 06:47:11 +00:00
Fix issue of failed to modify configs & secrets
This commit is contained in:
parent
805140a16b
commit
1c45382cf4
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user