Browse Source

Fix Designate Zone ID lookup

This was broken by a8fba21f23.

Change-Id: I4562a6c243c9010337252d5c57485dc5f64268e1
Task: 37373
changes/34/693134/1
Zane Bitter 2 years ago
parent
commit
03819bd449
  1. 2
      heat/engine/clients/os/designate.py

2
heat/engine/clients/os/designate.py

@ -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']

Loading…
Cancel
Save