mirror of
https://codeberg.org/lauralani/ipam.git
synced 2024-11-23 20:20:39 +01:00
fix missing error handling
This commit is contained in:
parent
0dde2b61a1
commit
e4d00323b5
1 changed files with 56 additions and 53 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue