@@ -296,11 +296,11 @@ func removeElement(stringList []string, elemToRemove string) []string {
296296 return stringList
297297}
298298
299- func processLinodeMachine (ctx context.Context , cscope * scope.ClusterScope , eachMachine v1alpha2.LinodeMachine , dnsTTLSec int , subdomain string ) ([]DNSOptions , error ) {
299+ func processLinodeMachine (ctx context.Context , cscope * scope.ClusterScope , machine v1alpha2.LinodeMachine , dnsTTLSec int , subdomain string ) ([]DNSOptions , error ) {
300300 // Look up the corresponding CAPI machine, see if it is marked for deletion
301- capiMachine , err := kutil .GetOwnerMachine (ctx , cscope .Client , eachMachine .ObjectMeta )
301+ capiMachine , err := kutil .GetOwnerMachine (ctx , cscope .Client , machine .ObjectMeta )
302302 if err != nil {
303- return nil , fmt .Errorf ("failed to get CAPI machine for LinodeMachine %s: %w" , eachMachine .Name , err )
303+ return nil , fmt .Errorf ("failed to get CAPI machine for LinodeMachine %s: %w" , machine .Name , err )
304304 }
305305
306306 if capiMachine == nil || capiMachine .DeletionTimestamp != nil {
@@ -309,7 +309,7 @@ func processLinodeMachine(ctx context.Context, cscope *scope.ClusterScope, eachM
309309 }
310310
311311 options := []DNSOptions {}
312- for _ , IPs := range eachMachine .Status .Addresses {
312+ for _ , IPs := range machine .Status .Addresses {
313313 recordType := linodego .RecordTypeA
314314 if IPs .Type != v1beta1 .MachineExternalIP {
315315 continue
0 commit comments