SOFTLAYER: Mark provider as unmaintained (#1080)

* Warn about Softlayer
This commit is contained in:
Tom Limoncelli 2021-03-07 11:55:15 -05:00 committed by GitHub
parent 21e85e6528
commit 56766f93a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -7,6 +7,10 @@ jsId: SOFTLAYER
# SoftLayer DNS Provider
NOTE: This provider is currently has no maintainer. We are looking for
a volunteer. If this provider breaks it may be disabled or removed if
it can not be easily fixed.
## Configuration
To authenticate with SoftLayer requires at least a `username` and `api_key` for authentication. It can also optionally take a `timeout` and `endpoint_url` parameter however these are optional and will use standard defaults if not provided.

View file

@ -22,8 +22,8 @@ type softlayerProvider struct {
}
var features = providers.DocumentationNotes{
providers.CanUseSRV: providers.Can(),
providers.CanGetZones: providers.Unimplemented(),
providers.CanUseSRV: providers.Can(),
}
func init() {
@ -31,6 +31,7 @@ func init() {
}
func newReg(conf map[string]string, _ json.RawMessage) (providers.DNSServiceProvider, error) {
fmt.Println("WARNING: THe SOFTLAYER provider is unmaintained: https://github.com/StackExchange/dnscontrol/issues/1079")
s := session.New(conf["username"], conf["api_key"], conf["endpoint_url"], conf["timeout"])
if len(s.UserName) == 0 || len(s.APIKey) == 0 {