Skip to content

Commit c3e379f

Browse files
craig[bot]golgeek
andcommitted
Merge #151319
151319: roachprod: ibm delete clusters r=herkolategan a=golgeek Starting in #150873, the IBM API query to list instances for deletion got more complex and this made the previously working shorthand `tags:"k1:v1 AND k2:v2"` ineffective. This patches the query to the fully written format `(tags:"k1:v1" AND tags:"k2:v2")`. Epic: none Release note: None Co-authored-by: Ludovic Leroux <[email protected]>
2 parents aa91607 + 286df50 commit c3e379f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/roachprod/vm/ibm/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ func (p *Provider) DeleteCluster(l *logger.Logger, name string) error {
551551
// roachprod and cluster tags, but will also fallback to searching via the
552552
// instance name to ensure all instances are properly deleted.
553553
query := fmt.Sprintf(
554-
`(tags:"%s:true AND %s:%s") OR (NOT (tags:"%s:true") AND name:%s-*)`,
554+
`(tags:"%s:true" AND tags:"%s:%s") OR (NOT (tags:"%s:true") AND name:%s-*)`,
555555
vm.TagRoachprod, vm.TagCluster, name,
556556
vm.TagRoachprod, name,
557557
)

0 commit comments

Comments
 (0)