mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Make sure volume exists before querying
This commit is contained in:
parent
01a0ea8a61
commit
9730c5da17
1 changed files with 1 additions and 1 deletions
|
@ -1988,7 +1988,7 @@ def request_instance(vm_=None, call=None):
|
|||
params[termination_key] = str(set_del_root_vol_on_destroy).lower()
|
||||
|
||||
# Use default volume type if not specified
|
||||
if ex_blockdevicemappings and 'Ebs.VolumeType' not in ex_blockdevicemappings[dev_index]:
|
||||
if ex_blockdevicemappings and dev_index < len(ex_blockdevicemappings) and 'Ebs.VolumeType' not in ex_blockdevicemappings[dev_index]:
|
||||
type_key = '{0}BlockDeviceMapping.{1}.Ebs.VolumeType'.format(spot_prefix, dev_index)
|
||||
params[type_key] = rd_type
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue