Use default region_name parameter in clients
As part of I289c7f8dc93a30ba1d5aa06d9da29a6af1308b9a clients gained knowledge of region they're using, however there were a couple of typos in initialising those. This commit alters: heat client to use region passed mistral client to have default value (None) Change-Id: I925c41b09758f531ebf021381f4899fb537b6f32 Closes-Bug: #1620716
This commit is contained in:
parent
f30821c67a
commit
da52590922
@ -52,7 +52,7 @@ class HeatStack(object):
|
||||
self._last_stack_timestamps = (None, None)
|
||||
self._tags = ''
|
||||
self._owner = this.find_owner('io.murano.CloudRegion')
|
||||
self._region_name = None
|
||||
self._region_name = region_name
|
||||
|
||||
@staticmethod
|
||||
def _create_client(session, region_name):
|
||||
|
@ -39,7 +39,7 @@ class MistralError(Exception):
|
||||
|
||||
@dsl.name('io.murano.system.MistralClient')
|
||||
class MistralClient(object):
|
||||
def __init__(self, this, region_name):
|
||||
def __init__(self, this, region_name=None):
|
||||
self._owner = this.find_owner('io.murano.Environment')
|
||||
self._region_name = region_name
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user