fix missing error handling

This commit is contained in:
Adora Laura Kalb 2023-03-31 20:13:55 +02:00
parent 0dde2b61a1
commit e4d00323b5
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056

View file

@ -54,7 +54,10 @@ var importCmd = &cobra.Command{
addr.ChangedBy = "ipam import"
addr.ChangedAt = time.Now()
if addr.FQDN != "" {
AddDNSFqdn(addr.FQDN, addr.IP)
err := AddDNSFqdn(addr.FQDN, addr.IP)
if err != nil {
fmt.Printf("[ERROR] %v\n", err)
}
}
}