Use random name for Heat stack name instead of environment's name

Change-Id: I44de2083aa2d50e6cd3b3b79b204facedaf2b7df
Closes-Bug: #1321476
This commit is contained in:
Stan Lagun 2014-07-07 15:00:28 +04:00
parent fecea01898
commit f3d0901fbc

@ -41,7 +41,12 @@ Properties:
Methods:
initialize:
Body:
- $this.agentListener: new(sys:AgentListener, name => $.name)
- $heatStackName: $.getAttr(heatStackName)
- If: $heatStackName = null
- Then:
- $heatStackName: randomName()
- $.setAttr(heatStackName, $heatStackName)
- $this.agentListener: new(sys:AgentListener, name => $heatStackName)
- $this.stack: new(sys:HeatStack, name => $.name)
- $this.instanceNotifier: new(sys:InstanceNotifier, environment => $this)
- $this.reporter: new(sys:StatusReporter, environment => $this)