#NEWLINE# def rescue( device , start , end ) : #NEWLINE# #INDENT# "\n    Rescue a lost partition that was located somewhere between start and end.\n    If a partition is found, parted will ask if you want to create an\n    entry for it in the partition table.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' partition.rescue /dev/sda 0 8056\n    " #NEWLINE# _validate_device ( device ) #NEWLINE# _validate_partition_boundary ( start ) #NEWLINE# _validate_partition_boundary ( end ) #NEWLINE# cmd = 'parted -m -s {0} rescue {1} {2}' . format ( device , start , end ) #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( ) #NEWLINE# return out