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:
Kirill Zaitsev 2016-09-06 19:37:28 +03:00 committed by Kirill Zaitsev
parent f30821c67a
commit da52590922
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

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