def glsa_check_list(glsa_list):
 cmd = 'glsa-check --quiet --nocolor --cve --list '
 if isinstance(glsa_list, list):
  for glsa in glsa_list:
   cmd += (glsa + ' ')
 elif ((glsa_list == 'all') or (glsa_list == 'affected')):
  cmd += glsa_list
 ret = dict()
 out = __salt__['cmd.run'](cmd, python_shell=False).split('\n')
 ret = _glsa_list_process_output(out)
 return ret

def glsa_check_list ( glsa_list ) : cmd = 'glsa-check --quiet --nocolor --cve --list ' if isinstance ( glsa_list , list ) : for glsa in glsa_list : cmd += ( glsa + ' ' ) elif ( ( glsa_list == 'all' ) or ( glsa_list == 'affected' ) ) : cmd += glsa_list ret = dict ( ) out = __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) . split ( '\n' ) ret = _glsa_list_process_output ( out ) return ret
list the status of gentoo linux security advisories glsa_list can contain an arbitrary number of glsa ids .