Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

TypeError: Goss.execute() takes 1 positional argument but 2 were given #18

@anxstj

Description

@anxstj

Issue Type

  • Bug report

Molecule and Ansible details

ansible [core 2.13.1]
  config file = /home/anxstj/.ansible.cfg
  configured module search path = ['/home/anxstj/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /tmp/venv/lib/python3.10/site-packages/ansible
  ansible collection location = /home/anxstj/.ansible/collections:/usr/share/ansible/collections
  executable location = ../venv/bin/ansible
  python version = 3.10.5 (main, Jun  9 2022, 00:00:00) [GCC 12.1.1 20220507 (Red Hat 12.1.1-1)]
  jinja version = 3.1.2
  libyaml = True
molecule 4.0.0 using python 3.10 
    ansible:2.13.1
    delegated:4.0.0 from molecule
    docker:1.1.0 from molecule_docker requiring collections: community.docker>=1.9.1

Molecule installation method (one of):

  • pip

Ansible installation method (one of):

  • pip

Desired Behavior

The verify stage should succeed.

Actual Behaviour

virtualenv venv
. venv/bin/activate
pip install molecule==4.0.0 molecule-docker molecule-goss
./venv/bin/molecule init role my.foo -d docker --verifier-name goss
cd foo
../venv/bin/molecule converge
../venv/bin/molecule verify
  INFO     Running default > verify
  Traceback (most recent call last):
    File "/tmp/foo/../venv/bin/molecule", line 8, in <module>
      sys.exit(main())
    File "/tmp/venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
      return self.main(*args, **kwargs)
    File "/tmp/venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
      rv = self.invoke(ctx)
    File "/tmp/venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
      return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/tmp/venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
      return ctx.invoke(self.callback, **ctx.params)
    File "/tmp/venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
      return __callback(*args, **kwargs)
    File "/tmp/venv/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
      return f(get_current_context(), *args, **kwargs)
    File "/tmp/venv/lib/python3.10/site-packages/molecule/command/verify.py", line 91, in verify
      base.execute_cmdline_scenarios(scenario_name, args, command_args)
    File "/tmp/venv/lib/python3.10/site-packages/molecule/command/base.py", line 121, in execute_cmdline_scenarios
      execute_scenario(scenario)
    File "/tmp/venv/lib/python3.10/site-packages/molecule/command/base.py", line 165, in execute_scenario
      execute_subcommand(scenario.config, action)
    File "/tmp/venv/lib/python3.10/site-packages/molecule/command/base.py", line 154, in execute_subcommand
      return command(config).execute(args)
    File "/tmp/venv/lib/python3.10/site-packages/molecule/logger.py", line 188, in wrapper
      rt = func(*args, **kwargs)
    File "/tmp/venv/lib/python3.10/site-packages/molecule/command/verify.py", line 74, in execute
      self._config.verifier.execute(action_args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions