Skip to content

Commit

Permalink
Add actual update of DNS records
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiante committed Nov 11, 2024
1 parent cc7e2e9 commit 709ead0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/dns/hosttech_update_records.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ func newHosttechUpdateRecordsCommand() *cobra.Command {
}

// User has accepted
// TODO: Update records
cmd.Println("Update not yet implemented")
os.Exit(1)
err = dnsutils.Update(context.Background(), *zone, records, *newValue, provider)
if err != nil {
cmd.PrintErrf("failed to update records: %v\n", err)
os.Exit(1)
}
}

return cmd
Expand Down

0 comments on commit 709ead0

Please sign in to comment.