|
|
@@ -466,7 +466,7 @@ type CloudbrainsOptions struct { |
|
|
|
NeedDeleteInfo string |
|
|
|
Cluster string |
|
|
|
AccCardType string |
|
|
|
AccCardsNum string |
|
|
|
AccCardsNum int |
|
|
|
WorkServerNumber int |
|
|
|
} |
|
|
|
|
|
|
@@ -2341,7 +2341,7 @@ func CloudbrainAll(opts *CloudbrainsOptions) ([]*CloudbrainInfo, int64, error) { |
|
|
|
if opts.AccCardType != "" { |
|
|
|
cond = cond.And(builder.Eq{"cloudbrain_spec.acc_card_type": opts.AccCardType}) |
|
|
|
} |
|
|
|
if opts.AccCardsNum != "" { |
|
|
|
if opts.AccCardsNum >= 0 { |
|
|
|
cond = cond.And(builder.Eq{"cloudbrain_spec.acc_cards_num": opts.AccCardsNum}) |
|
|
|
} |
|
|
|
|
|
|
|