def _checkblk(name):
 blk = __salt__['cmd.run']('lsblk -o fstype {0}'.format(name)).splitlines()
 return ('' if (len(blk) == 1) else blk[1])

def _checkblk ( name ) : blk = __salt__ [ 'cmd.run' ] ( 'lsblk -o fstype {0}' . format ( name ) ) . splitlines ( ) return ( '' if ( len ( blk ) == 1 ) else blk [ 1 ] )
check if the blk exists and return its fstype if ok .