Skip to content
Snippets Groups Projects
  • Thomas Woerner's avatar
    a32fcb37
    ansible_freeipa_module.py: Calm down ansible-test on print and sys.exit · a32fcb37
    Thomas Woerner authored
    The function exit_raw_json is a replacement for AnsibleModule.exit_json
    without flterting out values for no_log parameters.
    
    Ansible added checks for pylint to forbid print and also sys.exit and
    fails with ansible-bad-function. As the check is not known outside of
    ansible-test, the disable line needed also W0012:
    
        # pylint: disable=W0012,ansible-bad-function
    a32fcb37
    History
    ansible_freeipa_module.py: Calm down ansible-test on print and sys.exit
    Thomas Woerner authored
    The function exit_raw_json is a replacement for AnsibleModule.exit_json
    without flterting out values for no_log parameters.
    
    Ansible added checks for pylint to forbid print and also sys.exit and
    fails with ansible-bad-function. As the check is not known outside of
    ansible-test, the disable line needed also W0012:
    
        # pylint: disable=W0012,ansible-bad-function