fix rewrite deploy status problem
@@ -46,10 +46,10 @@ func (m *Mercury) doOpsContainer(ctx context.Context, container *types.Container
data := map[string]string{
fmt.Sprintf(containerInfoKey, container.ID): containerData,
fmt.Sprintf(nodeContainersKey, container.Nodename, container.ID): containerData,
- filepath.Join(containerDeployPrefix, appname, entrypoint, container.Nodename, container.ID): "",
}
if create {
+ data[filepath.Join(containerDeployPrefix, appname, entrypoint, container.Nodename, container.ID)] = ""
_, err = m.BatchCreate(ctx, data)
} else {
_, err = m.BatchUpdate(ctx, data)
