Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
fix index out of range (close #2) (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
  • Loading branch information
Adphi authored Oct 7, 2022
1 parent f7078a3 commit 3c41756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ func (p *Provider) addDNSEntry(ctx context.Context, zone string, record libdns.R
if err != nil {
return record, err
}
record.ID = records.Records[0].ID
if len(records.Records) > 0 {
record.ID = records.Records[0].ID
}
return record, nil
}

Expand Down

0 comments on commit 3c41756

Please sign in to comment.