GCE DNS Cleanup: Print record name

Use the GroupKey to pass the zone name, meaning the name can be the
user-facing value.

Follow-on to #8250
This commit is contained in:
Justin Santa Barbara 2020-04-07 22:11:09 -04:00
parent ef10d5444e
commit be1a03a3c0
1 changed files with 2 additions and 2 deletions

View File

@ -843,7 +843,7 @@ func (d *clusterDiscoveryGCE) listGCEDNSZone() ([]*resources.Resource, error) {
if d.isKopsManagedDNSName(record.Name) {
resource := resources.Resource{
Name: zone.Name,
Name: record.Name,
ID: record.Name,
Type: typeDNSRecord,
GroupDeleter: deleteDNSRecords,
@ -865,7 +865,7 @@ func deleteDNSRecords(cloud fi.Cloud, r []*resources.Resource) error {
for _, record := range r {
r := record.Obj.(*clouddns.ResourceRecordSet)
zoneName = record.Name
zoneName = record.GroupKey
records = append(records, r)
}