Added availability_zone as a configurable option for blockstorage.
Change-Id: I936197af9a8de02008b2e4fb42453c2e0b8454f3
This commit is contained in:
parent
7ec05b9eff
commit
a25058dca8
@ -28,3 +28,7 @@ class BlockStorageConfig(ConfigSectionInterface):
|
||||
@property
|
||||
def region(self):
|
||||
return self.get('region')
|
||||
|
||||
@property
|
||||
def availability_zone(self):
|
||||
return self.get('availability_zone')
|
||||
|
@ -220,9 +220,8 @@ class VolumesAPI_Behaviors(BaseBehavior):
|
||||
|
||||
@behavior(VolumesClient)
|
||||
def create_available_volume(
|
||||
self, size, volume_type, name=None,
|
||||
description=None, availability_zone=None, metadata=None,
|
||||
timeout=None):
|
||||
self, size, volume_type, name=None, description=None,
|
||||
availability_zone=None, metadata=None, timeout=None):
|
||||
|
||||
expected_status = statuses.Volume.AVAILABLE
|
||||
metadata = metadata or {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user