From 1df18e2d99d397bd3f0a8e5d21ba2d68b106e9a6 Mon Sep 17 00:00:00 2001 From: Takashi NATSUME Date: Wed, 21 Nov 2018 13:38:01 +0900 Subject: [PATCH] Fix a type of block_device_mapping_v2 in a comment Change-Id: I9c74402fbc4b2390b64265c6f174bc7e343900cc Closes-Bug: #1804198 --- novaclient/v2/servers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/novaclient/v2/servers.py b/novaclient/v2/servers.py index e94f3567a..98f22ba2b 100644 --- a/novaclient/v2/servers.py +++ b/novaclient/v2/servers.py @@ -710,6 +710,7 @@ class ServerManager(base.BootingManagerWithFind): body["server"]["availability_zone"] = availability_zone # Block device mappings are passed as a list of dictionaries + # in the create API if block_device_mapping: body['server']['block_device_mapping'] = \ self._parse_block_device_mapping(block_device_mapping) @@ -1229,8 +1230,8 @@ class ServerManager(base.BootingManagerWithFind): placement. :param block_device_mapping: (optional extension) A dict of block device mappings for this server. - :param block_device_mapping_v2: (optional extension) A dict of block - device mappings for this server. + :param block_device_mapping_v2: (optional extension) A list of block + device mappings (dicts) for this server. :param nics: An ordered list of nics (dicts) to be added to this server, with information about connected networks, fixed IPs, port etc.