summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/servers.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py
index c5e829d52..8288f0424 100644
--- a/nova/api/openstack/compute/servers.py
+++ b/nova/api/openstack/compute/servers.py
@@ -796,7 +796,11 @@ class Controller(wsgi.Controller):
block_device_mapping = None
if self.ext_mgr.is_loaded('os-volumes'):
- block_device_mapping = server_dict.get('block_device_mapping')
+ block_device_mapping = server_dict.get('block_device_mapping', [])
+ for bdm in block_device_mapping:
+ if 'delete_on_termination' in bdm:
+ bdm['delete_on_termination'] = utils.bool_from_str(
+ bdm['delete_on_termination'])
ret_resv_id = False
# min_count and max_count are optional. If they exist, they may come