fix func RecordingRuleGetsByCluster
This commit is contained in:
parent
538880b0e0
commit
a285966560
|
@ -194,7 +194,7 @@ func RecordingRuleGetById(id int64) (*RecordingRule, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func RecordingRuleGetsByCluster(cluster string) ([]*RecordingRule, error) {
|
func RecordingRuleGetsByCluster(cluster string) ([]*RecordingRule, error) {
|
||||||
session := DB().Where("disabled = ? and prod = ?", 0, "")
|
session := DB().Where("disabled = ?", 0)
|
||||||
|
|
||||||
if cluster != "" {
|
if cluster != "" {
|
||||||
session = session.Where("(cluster like ? or cluster = ?)", "%"+cluster+"%", ClusterAll)
|
session = session.Where("(cluster like ? or cluster = ?)", "%"+cluster+"%", ClusterAll)
|
||||||
|
|
Loading…
Reference in New Issue