Skip to content

Commit

Permalink
Merge pull request #6972 from barbacbd/cherry-pick-5976-to-release-4.10
Browse files Browse the repository at this point in the history
OCPBUGS-5931: destroy/gcp: Disk names are filtered using kubernetes name format
  • Loading branch information
openshift-merge-robot committed May 9, 2023
2 parents 8862860 + b1f7025 commit 3172e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/destroy/gcp/disk.go
Expand Up @@ -44,7 +44,7 @@ func (o *ClusterUninstaller) storageLabelOrClusterIDFilter() string {
}

func (o *ClusterUninstaller) listDisks() ([]cloudResource, error) {
return o.listDisksWithFilter("items/*/disks(name,zone,type,sizeGb),nextPageToken", o.clusterLabelOrClusterIDFilter(), nil)
return o.listDisksWithFilter("items/*/disks(name,zone,type,sizeGb),nextPageToken", o.storageLabelOrClusterIDFilter(), nil)
}

// listDisksWithFilter lists disks in the project that satisfy the filter criteria.
Expand Down

0 comments on commit 3172e19

Please sign in to comment.