Skip to content

Commit 5a2a53c

Browse files
KlettITKlett IT
andauthored
FORTIGATE: Fix init provider (#3654)
Co-authored-by: Klett IT <[email protected]>
1 parent 3bdbb48 commit 5a2a53c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

providers/fortigate/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func newClient(host, vdom, key string, insecure bool) *apiClient {
7272

7373
//
7474
// Central request helper
75-
//
75+
//
7676

7777
// do executes a request.
7878
//

providers/fortigate/converter.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/StackExchange/dnscontrol/v4/models"
1010
)
1111

12-
1312
// nativeToRecord – convert an fgDNSRecord coming from FortiGate into a *models.RecordConfig that dnscontrol understands
1413
func nativeToRecord(domain string, n fgDNSRecord) (*models.RecordConfig, error) {
1514
rc := &models.RecordConfig{}
@@ -145,7 +144,6 @@ func recordsToNative(recs models.Records) ([]*fgDNSRecord, []error) {
145144
return resourceRecords, errors
146145
}
147146

148-
149147
// ensureDot – make sure an FQDN ends with a trailing dot
150148
func ensureDot(fqdn string) string {
151149
if fqdn == "" || strings.HasSuffix(fqdn, ".") {

providers/fortigate/fortigateProvider.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ var features = providers.DocumentationNotes{
2525
// Provider Registration
2626

2727
func init() {
28-
const name = "FORTIGATE"
29-
providers.RegisterDomainServiceProviderType(name, providers.DspFuncs{
28+
const providerName = "FORTIGATE"
29+
const providerMaintainer = "@KlettIT"
30+
providers.RegisterDomainServiceProviderType(providerName, providers.DspFuncs{
3031
Initializer: NewFortiGate,
3132
RecordAuditor: AuditRecords,
3233
}, features)
34+
providers.RegisterMaintainer(providerName, providerMaintainer)
3335
}
3436

3537
// Provider Struct

0 commit comments

Comments
 (0)