mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
OVH: Update to use newer client library (#445)
* xlucas/go-ovh is deprecated, use ovh/go-ovh instead. * vendor github.com/ovh/go-ovh * Fix 022-sshfp.json test
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
"github.com/StackExchange/dnscontrol/models"
|
||||
"github.com/StackExchange/dnscontrol/providers"
|
||||
"github.com/StackExchange/dnscontrol/providers/diff"
|
||||
"github.com/ovh/go-ovh/ovh"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/xlucas/go-ovh/ovh"
|
||||
)
|
||||
|
||||
type ovhProvider struct {
|
||||
@@ -33,10 +33,8 @@ var features = providers.DocumentationNotes{
|
||||
func newOVH(m map[string]string, metadata json.RawMessage) (*ovhProvider, error) {
|
||||
appKey, appSecretKey, consumerKey := m["app-key"], m["app-secret-key"], m["consumer-key"]
|
||||
|
||||
c := ovh.NewClient(ovh.ENDPOINT_EU_OVHCOM, appKey, appSecretKey, consumerKey, false)
|
||||
|
||||
// Check for time lag
|
||||
if err := c.PollTimeshift(); err != nil {
|
||||
c,err := ovh.NewClient(ovh.OvhEU, appKey, appSecretKey, consumerKey)
|
||||
if c == nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user