diff --git a/openstack/dns/v2/recordsets/requests.go b/openstack/dns/v2/recordsets/requests.go index 749167c33..64df989eb 100644 --- a/openstack/dns/v2/recordsets/requests.go +++ b/openstack/dns/v2/recordsets/requests.go @@ -137,8 +137,6 @@ func (opts UpdateOpts) ToRecordSetUpdateMap() (map[string]interface{}, error) { if opts.TTL > 0 { b["ttl"] = opts.TTL - } else { - b["ttl"] = nil } return b, nil diff --git a/openstack/dns/v2/recordsets/testing/fixtures.go b/openstack/dns/v2/recordsets/testing/fixtures.go index 5e891b539..f21b0e18a 100644 --- a/openstack/dns/v2/recordsets/testing/fixtures.go +++ b/openstack/dns/v2/recordsets/testing/fixtures.go @@ -289,7 +289,6 @@ func HandleCreateSuccessfully(t *testing.T) { const UpdateRecordSetRequest = ` { "description" : "Updated description", - "ttl" : null, "records" : [ "10.1.0.2", "10.1.0.3"