The original env should be {}, otherwise it can not be dealt with by heat client.

Change-Id: If6013085d61ac87e836cea15fc47588753eabc1a
This commit is contained in:
zhangyifan 2018-05-11 17:09:51 +08:00
parent 5c6015f869
commit e47050853d
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ class HeatStack(object):
self._template = None
self._parameters = {}
self._files = {}
self._hot_environment = ''
self._hot_environment = {}
self._applied = True
self._description = description
self._last_stack_timestamps = (None, None)

View File

@ -62,7 +62,7 @@ class TestHeatStack(base.MuranoTestCase):
hs = heat_stack.HeatStack('test-stack', 'Generated by TestHeatStack')
hs._template = {'resources': {'test': 1}}
hs._files = {}
hs._hot_environment = ''
hs._hot_environment = {}
hs._parameters = {}
hs._applied = False
hs.push()
@ -86,7 +86,7 @@ class TestHeatStack(base.MuranoTestCase):
parameters={},
template=expected_template,
files={},
environment='',
environment={},
tags=self.mock_tag
)
self.assertTrue(hs._applied)