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

puppet module - noop parameter with boolean value fails with "parameter takes exactly 3 arguments (2 given)" #6452

Closed
1 task done
ulysses-31 opened this issue Apr 28, 2023 · 3 comments · Fixed by #6458
Closed
1 task done
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@ulysses-31
Copy link

Summary

Puppet module parameter 'noop' is not working with community.general version 6.6.0.

- community.general.puppet:
    noop: false

Fails with the following error:

ansible_collections.community.general.plugins.module_utils.cmd_runner.FormatError: Failed to format parameter noop with value False: call() takes exactly 3 arguments (2 given)

Other module parameters such as 'timeout' are working fine. Issue is specific to 'noop' parameter.

Issue Type

Bug Report

Component Name

community.general.puppet

Ansible Version

$ ansible --version
ansible [core 2.14.4]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.9.13 (main, Nov  9 2022, 13:16:24) [GCC 8.5.0 20210514 (Red Hat 8.5.0-15)] (/usr/bin/python3.9)
  jinja version = 3.1.2
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# /usr/share/ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 6.6.0

Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = /etc/ansible/ansible.cfg

OS / Environment

Ansible Automation Platform 2.3 running on RHEL8. Target is RHEL7 with Puppet installed.

Steps to Reproduce

  tasks:

    - community.general.puppet:
        noop: false

Expected Results

Expect puppet module to accept 'noop' parameter values of true and false.

Actual Results

ansible_collections.community.general.plugins.module_utils.cmd_runner.FormatError: Failed to format parameter noop with value False: __call__() takes exactly 3 arguments (2 given)

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @emonty
click here for bot help

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) labels Apr 28, 2023
@felixfontein
Copy link
Collaborator

CC @russoz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants