def rescue(device, start, end):
 _validate_device(device)
 _validate_partition_boundary(start)
 _validate_partition_boundary(end)
 cmd = 'parted -m -s {0} rescue {1} {2}'.format(device, start, end)
 out = __salt__['cmd.run'](cmd).splitlines()
 return out

def rescue ( device , start , end ) : _validate_device ( device ) _validate_partition_boundary ( start ) _validate_partition_boundary ( end ) cmd = 'parted -m -s {0} rescue {1} {2}' . format ( device , start , end ) out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) return out
rescue a lost partition that was located somewhere between start and end .