From f7df647ff5762778e0f6c125a7d40b824d724d01 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Wed, 9 Jan 2019 16:11:02 +0800 Subject: [PATCH 1/2] Fix dns recordset TTL update error --- openstack/dns/v2/recordsets/requests.go | 2 -- 1 file changed, 2 deletions(-) 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 From 6a765b5e69b0e796bf3ac4a9f3a7e14c8a67f040 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Wed, 9 Jan 2019 16:59:11 +0800 Subject: [PATCH 2/2] Fix acc tests --- openstack/dns/v2/recordsets/testing/fixtures.go | 1 - 1 file changed, 1 deletion(-) 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"