def _active_mounts_darwin(ret):
 for line in __salt__['cmd.run_stdout']('mount').split('\n'):
  comps = re.sub('\\s+', ' ', line).split()
  parens = re.findall('\\((.*?)\\)', line, re.DOTALL)[0].split(', ')
  ret[comps[2]] = {'device': comps[0], 'fstype': parens[0], 'opts': _resolve_user_group_names(parens[1:])}
 return ret

def _active_mounts_darwin ( ret ) : for line in __salt__ [ 'cmd.run_stdout' ] ( 'mount' ) . split ( '\n' ) : comps = re . sub ( '\\s+' , ' ' , line ) . split ( ) parens = re . findall ( '\\((.*?)\\)' , line , re . DOTALL ) [ 0 ] . split ( ', ' ) ret [ comps [ 2 ] ] = { 'device' : comps [ 0 ] , 'fstype' : parens [ 0 ] , 'opts' : _resolve_user_group_names ( parens [ 1 : ] ) } return ret
list active mounts on mac os systems .