Fix Designate Zone ID lookup
This was broken by a8fba21f23
.
Change-Id: I4562a6c243c9010337252d5c57485dc5f64268e1
Task: 37373
This commit is contained in:
parent
61048ef16b
commit
03819bd449
|
@ -39,7 +39,7 @@ class DesignateClientPlugin(client_plugin.ClientPlugin):
|
||||||
return isinstance(ex, exceptions.NotFound)
|
return isinstance(ex, exceptions.NotFound)
|
||||||
|
|
||||||
def get_zone_id(self, zone_id_or_name):
|
def get_zone_id(self, zone_id_or_name):
|
||||||
client = self.client(version=self.V2)
|
client = self.client(version='2')
|
||||||
try:
|
try:
|
||||||
zone_obj = client.zones.get(zone_id_or_name)
|
zone_obj = client.zones.get(zone_id_or_name)
|
||||||
return zone_obj['id']
|
return zone_obj['id']
|
||||||
|
|
Loading…
Reference in New Issue