Skip to content

Commit a327413

Browse files
use machineexternalip type instead of plain string
Co-authored-by: Ashley Dumaine <5779804+AshleyDumaine@users.noreply.github.com>
1 parent dcb0047 commit a327413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud/services/domains.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (d *DNSEntries) getDNSEntriesToEnsure(mscope *scope.MachineScope) ([]DNSOpt
7777

7878
for _, IPs := range mscope.LinodeMachine.Status.Addresses {
7979
recordType := linodego.RecordTypeA
80-
if IPs.Type != "ExternalIP" {
80+
if IPs.Type != v1beta1.MachineExternalIP {
8181
continue
8282
}
8383
addr, err := netip.ParseAddr(IPs.Address)

0 commit comments

Comments
 (0)