diff --git a/deploy/ck.go b/deploy/ck.go index ff93ad4..e468e5d 100644 --- a/deploy/ck.go +++ b/deploy/ck.go @@ -320,7 +320,7 @@ func (d *CKDeploy) Config() error { d.Conf.Normalize() confFiles := make([]string, 0) - if d.Conf.LogicCluster == nil || d.Ext.CurClusterOnly { + if d.Conf.LogicCluster == nil { metrika, err := ckconfig.GenerateMetrikaXML(path.Join(config.GetWorkDirectory(), "package", "metrika.xml"), d.Conf) if err != nil { return err @@ -446,9 +446,12 @@ func (d *CKDeploy) Config() error { if lastError != nil { return lastError } - if !d.Ext.CurClusterOnly && d.Conf.LogicCluster != nil { + if d.Conf.LogicCluster != nil { logicMetrika, deploys := GenLogicMetrika(d) for _, deploy := range deploys { + if d.Ext.CurClusterOnly && d.Conf.Cluster != deploy.Conf.Cluster { + continue + } deploy.Conf.Normalize() metrikaFile, err := common.NewTempFile(path.Join(config.GetWorkDirectory(), "package"), "metrika") if err != nil {