def _is_device(path):
 out = __salt__['cmd.run_all']('file -i {0}'.format(path))
 _verify_run(out)
 return (re.split('\\s+', out['stdout'])[1][:(-1)] == 'inode/blockdevice')

def _is_device ( path ) : out = __salt__ [ 'cmd.run_all' ] ( 'file -i {0}' . format ( path ) ) _verify_run ( out ) return ( re . split ( '\\s+' , out [ 'stdout' ] ) [ 1 ] [ : ( - 1 ) ] == 'inode/blockdevice' )
return true if path is a physical device .