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:
Omar Shykhkerimov 2016-09-21 20:39:56 +03:00
parent 16c3d43065
commit 7cd1b70a66
1 changed files with 1 additions and 5 deletions

View File

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