mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
allow for nova servers to be built with premade volumes
if the boot_volume is specified, allow for that to be used instead of an image
This commit is contained in:
parent
4a411c0817
commit
9660c91b57
@ -2640,7 +2640,7 @@ def is_profile_configured(opts, provider, profile_name):
|
||||
elif driver == 'vmware' or linode_cloning:
|
||||
required_keys.append('clonefrom')
|
||||
elif driver == 'nova':
|
||||
nova_image_keys = ['image', 'block_device_mapping', 'block_device']
|
||||
nova_image_keys = ['image', 'block_device_mapping', 'block_device', 'boot_volume']
|
||||
if not any([key in provider_key for key in nova_image_keys]) and not any([key in profile_key for key in nova_image_keys]):
|
||||
required_keys.extend(nova_image_keys)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user