Skip to content

Commit 30fd658

Browse files
author
Aaron Sierra
committed
dns: worldwidedns: Fix update_zone() reseller support
Include "ID" parameter when reseller_id is set: https://www.worldwidedns.net/dns_api_protocol_modify_reseller.asp
1 parent 318f958 commit 30fd658

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libcloud/dns/drivers/worldwidedns.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,18 +226,18 @@ def update_zone(self, zone, domain, type="master", ttl=None, extra=None, ex_raw=
226226
if extra is not None:
227227
params.update(extra)
228228

229+
method = "GET"
229230
if ex_raw:
230231
action = "/api_dns_modify_raw.asp"
231232

232233
if self.reseller_id is not None:
233234
action = "/api_dns_modify_raw_reseller.asp"
234235
method = "POST"
236+
elif self.reseller_id is not None:
237+
params["ID"] = self.reseller_id
238+
action = "/api_dns_modify_reseller.asp"
235239
else:
236240
action = "/api_dns_modify.asp"
237-
238-
if self.reseller_id is not None:
239-
action = "/api_dns_modify_reseller.asp"
240-
method = "GET"
241241
response = self.connection.request(action, params=params, method=method) # noqa
242242
zone = self.get_zone(zone.id)
243243

0 commit comments

Comments
 (0)