Move getRegion() in CinderVolume to deploy() method
getRegion() method in CinderVolume class was called before the region was created in Environment class. This patch moves usage of this function to deploy() method to have region already created. Change-Id: I542e5e7bf85bbf8dd83ac746e203e2e7e6b6f111 Closes-Bug: #1626048
This commit is contained in:
parent
16c3d43065
commit
7cd1b70a66
|
@ -49,11 +49,6 @@ Properties:
|
|||
Contract: $.class(CinderVolumeBackup)
|
||||
|
||||
Methods:
|
||||
.init:
|
||||
Body:
|
||||
- $._environment: $.find(std:Environment).require()
|
||||
- $._region: $.getRegion()
|
||||
|
||||
buildResourceDefinition:
|
||||
Body:
|
||||
- $properties:
|
||||
|
@ -99,6 +94,7 @@ Methods:
|
|||
|
||||
deploy:
|
||||
Body:
|
||||
- $._region: $.getRegion()
|
||||
- If: $.sourceSnapshot != null
|
||||
Then:
|
||||
$.sourceSnapshot.validate()
|
||||
|
|
Loading…
Reference in New Issue