122
131
func recordMachineInState(
123
132
client *api.Client, host, nonce string, instanceId instance.Id) (machineId, series, arch string, err error) {
125
134
// First, gather the parameters needed to inject the existing host into state.
128
136
// Do a reverse-lookup on the IP. The IP may not have
129
137
// a DNS entry, so just log a warning if this fails.
130
138
names, err := net.LookupAddr(ip.String())