def delvol_on_destroy(name, kwargs=None, call=None):
 if (call != 'action'):
  raise SaltCloudSystemExit('The delvol_on_destroy action must be called with -a or --action.')
 if (not kwargs):
  kwargs = {}
 device = kwargs.get('device', None)
 volume_id = kwargs.get('volume_id', None)
 return _toggle_delvol(name=name, device=device, volume_id=volume_id, value='true')

def delvol_on_destroy ( name , kwargs = None , call = None ) : if ( call != 'action' ) : raise SaltCloudSystemExit ( 'The delvol_on_destroy action must be called with -a or --action.' ) if ( not kwargs ) : kwargs = { } device = kwargs . get ( 'device' , None ) volume_id = kwargs . get ( 'volume_id' , None ) return _toggle_delvol ( name = name , device = device , volume_id = volume_id , value = 'true' )
delete all/specified ebs volumes upon instance termination cli example: .