There was an upstream fix to allow updating of DNS record name fields. A few other comment updates, but that's it.
This commit is contained in:
parent
2d894bae48
commit
82288c6064
|
@ -121,7 +121,11 @@ func (api *API) UpdateDNSRecord(zoneID, recordID string, rr DNSRecord) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
rr.Name = rec.Name
|
||||
// Populate the record name from the existing one if the update didn't
|
||||
// specify it.
|
||||
if rr.Name == "" {
|
||||
rr.Name = rec.Name
|
||||
}
|
||||
rr.Type = rec.Type
|
||||
uri := "/zones/" + zoneID + "/dns_records/" + recordID
|
||||
res, err := api.makeRequest("PUT", uri, rr)
|
||||
|
|
|
@ -238,7 +238,7 @@ func (api *API) ZoneRailguns(zoneID string) ([]ZoneRailgun, error) {
|
|||
return r.Result, nil
|
||||
}
|
||||
|
||||
// Railgun returns the configuration for a given Railgun.
|
||||
// ZoneRailgunDetails returns the configuration for a given Railgun.
|
||||
// API reference:
|
||||
// https://api.cloudflare.com/#railguns-for-a-zone-get-railgun-details
|
||||
// GET /zones/:zone_identifier/railguns/:identifier
|
||||
|
@ -255,7 +255,7 @@ func (api *API) ZoneRailgunDetails(zoneID, railgunID string) (ZoneRailgun, error
|
|||
return r.Result, nil
|
||||
}
|
||||
|
||||
// TestRailgunResponse tests a Railgun connection for a given zone.
|
||||
// TestRailgunConnection tests a Railgun connection for a given zone.
|
||||
// API reference:
|
||||
// https://api.cloudflare.com/#railgun-connections-for-a-zone-test-railgun-connection
|
||||
// GET /zones/:zone_identifier/railguns/:identifier/diagnose
|
||||
|
@ -294,7 +294,7 @@ func (api *API) connectZoneRailgun(zoneID, railgunID string, connect bool) (Zone
|
|||
return r.Result, nil
|
||||
}
|
||||
|
||||
// ZoneRailgun connects a Railgun for a given zone.
|
||||
// ConnectZoneRailgun connects a Railgun for a given zone.
|
||||
// API reference:
|
||||
// https://api.cloudflare.com/#railguns-for-a-zone-connect-or-disconnect-a-railgun
|
||||
// PATCH /zones/:zone_identifier/railguns/:identifier
|
||||
|
@ -302,7 +302,7 @@ func (api *API) ConnectZoneRailgun(zoneID, railgunID string) (ZoneRailgun, error
|
|||
return api.connectZoneRailgun(zoneID, railgunID, true)
|
||||
}
|
||||
|
||||
// ZoneRailgun disconnects a Railgun for a given zone.
|
||||
// DisconnectZoneRailgun disconnects a Railgun for a given zone.
|
||||
// API reference:
|
||||
// https://api.cloudflare.com/#railguns-for-a-zone-connect-or-disconnect-a-railgun
|
||||
// PATCH /zones/:zone_identifier/railguns/:identifier
|
||||
|
|
|
@ -1008,10 +1008,10 @@
|
|||
"revisionTime": "2016-11-06T04:23:43Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "L0fG0Aej27fMmhJwshFsqgVY4dM=",
|
||||
"checksumSHA1": "QhYMdplKQJAMptRaHZBB8CF6HdM=",
|
||||
"path": "github.com/cloudflare/cloudflare-go",
|
||||
"revision": "06a204ed25dc2873323f27d0e134ed4fdbd1c1ec",
|
||||
"revisionTime": "2016-10-05T09:59:54Z"
|
||||
"revision": "6cfcb7ec3886f434daf8515d14d4ab208cae845c",
|
||||
"revisionTime": "2016-12-21T19:00:05Z"
|
||||
},
|
||||
{
|
||||
"comment": "v2.3.0-alpha.0-652-ge552791",
|
||||
|
|
Loading…
Reference in New Issue