Merge "Fix Designate Zone ID lookup"

This commit is contained in:
Zuul 2019-11-12 19:47:56 +00:00 committed by Gerrit Code Review
commit e98848e516
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class DesignateClientPlugin(client_plugin.ClientPlugin):
return isinstance(ex, exceptions.NotFound)
def get_zone_id(self, zone_id_or_name):
client = self.client(version=self.V2)
client = self.client(version='2')
try:
zone_obj = client.zones.get(zone_id_or_name)
return zone_obj['id']