Remove type restrict of block_device_mapping
Server.block_device_mapping is a list instead of a dict, if create a server with this attribute set, to_dict() won't work. Change-Id: Iddd5ad44d21fa4e7e25728a2be1aaf5821df3f13
This commit is contained in:
parent
feaa7cc7d5
commit
4c807a04f7
|
@ -122,7 +122,7 @@ class Server(resource2.Resource, metadata.MetadataMixin):
|
|||
user_data = resource2.Body('OS-EXT-SRV-ATTR:user_data')
|
||||
#: Enables fine grained control of the block device mapping for an
|
||||
#: instance. This is typically used for booting servers from volumes.
|
||||
block_device_mapping = resource2.Body('block_device_mapping_v2', type=dict)
|
||||
block_device_mapping = resource2.Body('block_device_mapping_v2')
|
||||
#: The dictionary of data to send to the scheduler.
|
||||
scheduler_hints = resource2.Body('OS-SCH-HNT:scheduler_hints', type=dict)
|
||||
#: A networks object. Required parameter when there are multiple
|
||||
|
|
Loading…
Reference in New Issue