Commit 8b3d792b authored by Ian Wienand's avatar Ian Wienand
Browse files

dns_rackspace: search for domain

The current call uses the /domains end-point which lists all domains.
This only returns 100 domains at a time, so for long domain lists you
may not match and find the required ID.

Switch to using the search interface that only returns values matching
the requested domain.  This will avoid missing results.

Reported by @jjamfd.

Closes: #2944
parent 9190fdd4
...@@ -73,7 +73,7 @@ _get_root_zone() { ...@@ -73,7 +73,7 @@ _get_root_zone() {
#not valid #not valid
return 1 return 1
fi fi
if ! _rackspace_rest GET "$RACKSPACE_Tenant/domains"; then if ! _rackspace_rest GET "$RACKSPACE_Tenant/domains/search?name=$h"; then
return 1 return 1
fi fi
_debug2 response "$response" _debug2 response "$response"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment