block_device_mapping_v2 documentation incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Low
|
Takashi Natsume |
Bug Description
Latest documentation[1] states that you must pass a dictionary for block_device_
>>> mydict1={'key1': 'value1', 'key2': 'value2'}
>>> mydict2=[{'key1': 'value1', 'key2': 'value2'}]
>>> type(mydict1)
<type 'dict'>
>>> type(mydict2)
<type 'list'>
if you pass mydict1 - it will fail, while mydict2 works fine.
This is explicitly mentioned in code[2].
Should fix this confusing documentation.
[1] https:/
[2] https:/
tags: | added: doc |
In _boot function, block_device_ mapping should be passed as dict and block_device_ mapping_ v2 should be passed as list.
So the following comment is not correct.
https:/ /github. com/openstack/ python- novaclient/ blob/f0c63de21d 180994a3635d04b 778923a9a2247dc /novaclient/ v2/servers. py#L1232- L1233