mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Integration tests running in azure pipelines (#516)
This commit is contained in:
@@ -42,6 +42,12 @@ type gcloud struct {
|
||||
|
||||
// New creates a new gcloud provider
|
||||
func New(cfg map[string]string, metadata json.RawMessage) (providers.DNSServiceProvider, error) {
|
||||
// the key as downloaded is json encoded with literal "\n" instead of newlines.
|
||||
// in some cases (round-tripping through env vars) this tends to get messed up.
|
||||
// fix it if we find that.
|
||||
if key, ok := cfg["private_key"]; ok {
|
||||
cfg["private_key"] = strings.Replace(key, "\\n", "\n", -1)
|
||||
}
|
||||
raw, err := json.Marshal(cfg)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user