Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix firewalld get_masquerade_enabled_permanent error #21693

Merged
merged 1 commit into from Feb 24, 2017
Merged

Fix firewalld get_masquerade_enabled_permanent error #21693

merged 1 commit into from Feb 24, 2017

Conversation

alikins
Copy link
Contributor

@alikins alikins commented Feb 20, 2017

get_masquerade_* functions only take one arg. The action_handler
wrapper function expected a tuple, but was being passed (zone)
instead of (zone,) making for an ambiquous tuple. The
(zone) arg was being treated as a tuple/list of six chars
(the zone name) instead of a tuple of one string.

This would cause errors like:

    get_masquerade_enabled_permanent() takes exactly 1 argument (6 given)

Fixes #21632

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/modules/system/firewalld.py

ANSIBLE VERSION
ansible 2.3.0 (firewalld_tuple_21632 d58a9ee7c3) last updated 2017/02/20 16:28:14 (GMT -400)
  config file = /home/adrian/ansible/ansible.cfg
  configured module search path = [u'/home/adrian/ansible/my-modules']

SUMMARY

get_masquerade_* functions only take one arg. The action_handler
wrapper function expected a tuple, but was being passed (zone)
instead of (zone,) making for an ambiquous tuple. The
(zone) arg was being treated as a tuple/list of six chars
(the zone name) instead of a tuple of one string.

This would cause errors like:

        get_masquerade_enabled_permanent() takes exactly 1 argument (6 given)

Fixes #21632
@ansibot
Copy link
Contributor

ansibot commented Feb 20, 2017

@ansibot ansibot added affects_2.3 This issue/PR affects Ansible v2.3 bugfix_pull_request committer_review In order to be merged, this PR must follow the certified review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. labels Feb 20, 2017
@maxamillion
Copy link
Contributor

shipit

👍

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Feb 21, 2017
@alikins alikins merged commit 78c4f03 into ansible:devel Feb 24, 2017
navyzet added a commit to navyzet/ansible-role-openvpn that referenced this pull request Jun 20, 2017
"ERROR: Exception caught: set_masquerade_enabled() takes exactly 1 argument (6 given)"
 ansible/ansible#21693
kelbyers added a commit to kelbyers/ansible-role-openvpn that referenced this pull request Aug 30, 2017
ERROR: Exception caught: set_masquerade_enabled() takes exactly 1 argument (6 given)"
ansible/ansible#21693
kyl191 pushed a commit to kyl191/ansible-role-openvpn that referenced this pull request Aug 30, 2017
* workaround ansible issue "set_masquerade_enabled"

ERROR: Exception caught: set_masquerade_enabled() takes exactly 1 argument (6 given)"
ansible/ansible#21693

* my fork not in ansible galaxy

* make sure crl database file exists

* Revert "my fork not in ansible galaxy"

This reverts commit af1d9c3.
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 5, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.3 This issue/PR affects Ansible v2.3 bug This issue/PR relates to a bug. committer_review In order to be merged, this PR must follow the certified review workflow. module This issue/PR relates to a module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firewalld - set masquerade
3 participants