parameters: (module, login, seuser, do_reload, sestore='')
return_statement: return change
docstring: Delete linux user to SELinux user mapping
  
      :type module: AnsibleModule
      :param module: Ansible module
  
      :type login: str
      :param login: a Linux User or a Linux group if it begins with %
  
      :type seuser: str
      :param proto: An SELinux user ('__default__', 'unconfined_u', 'staff_u', ...), see 'semanage login -l'
  
      :type do_reload: bool
      :param do_reload: Whether to reload SELinux policy after commit
  
      :type sestore: str
      :param sestore: SELinux store
  
      :rtype: bool
      :return: True if the policy was changed, otherwise False
docstring_summary: Delete linux user to SELinux user mapping
docstring_tokens: Delete linux user to SELinux user mapping
function: def semanage_login_del(module, login, seuser, do_reload, sestore=''):
      """ Delete linux user to SELinux user mapping
  
      :type module: AnsibleModule
      :param module: Ansible module
  
      :type login: str
      :param login: a Linux User or a Linux group if it begins with %
  
      :type seuser: str
      :param proto: An SELinux user ('__default__', 'unconfined_u', 'staff_u', ...), see 'semanage login -l'
  
      :type do_reload: bool
      :param do_reload: Whether to reload SELinux policy after commit
  
      :type sestore: str
      :param sestore: SELinux store
  
      :rtype: bool
      :return: True if the policy was changed, otherwise False
      """
      try:
          selogin = seobject.loginRecords(sestore)
          selogin.set_reload(do_reload)
          change = False
          all_logins = selogin.get_all()
          # module.fail_json(msg="%s: %s %s" % (all_logins, login, sestore))
          if login in all_logins.keys():
              selogin.delete(login)
              change = True
  
      except ValueError:
          e = get_exception()
          module.fail_json(msg="%s: %s\n" % (e.__class__.__name__, str(e)))
      except IOError:
          e = get_exception()
          module.fail_json(msg="%s: %s\n" % (e.__class__.__name__, str(e)))
      except KeyError:
          e = get_exception()
          module.fail_json(msg="%s: %s\n" % (e.__class__.__name__, str(e)))
      except OSError:
          e = get_exception()
          module.fail_json(msg="%s: %s\n" % (e.__class__.__name__, str(e)))
      except RuntimeError:
          e = get_exception()
          module.fail_json(msg="%s: %s\n" % (e.__class__.__name__, str(e)))
  
      return change
function_tokens: def semanage_login_del ( module , login , seuser , do_reload , sestore = '' ) : try : selogin = seobject . loginRecords ( sestore ) selogin . set_reload ( do_reload ) change = False all_logins = selogin . get_all ( ) # module.fail_json(msg="%s: %s %s" % (all_logins, login, sestore)) if login in all_logins . keys ( ) : selogin . delete ( login ) change = True except ValueError : e = get_exception ( ) module . fail_json ( msg = "%s: %s\n" % ( e . __class__ . __name__ , str ( e ) ) ) except IOError : e = get_exception ( ) module . fail_json ( msg = "%s: %s\n" % ( e . __class__ . __name__ , str ( e ) ) ) except KeyError : e = get_exception ( ) module . fail_json ( msg = "%s: %s\n" % ( e . __class__ . __name__ , str ( e ) ) ) except OSError : e = get_exception ( ) module . fail_json ( msg = "%s: %s\n" % ( e . __class__ . __name__ , str ( e ) ) ) except RuntimeError : e = get_exception ( ) module . fail_json ( msg = "%s: %s\n" % ( e . __class__ . __name__ , str ( e ) ) ) return change