Skip to content

Molecule 5.0 Failing on GitHub Action #3883

@dgibbs64

Description

@dgibbs64

Issue Type

  • Bug report

Molecule and Ansible details

ansible --version && molecule --version
ansible-7.4.0
molecule-5.0.0

Molecule installation method (one of):

  • pip

Ansible installation method (one of):

  • pip

Detail any linters or test runners used:

Desired Behavior

Molecule not failing to run.

Actual Behaviour

Since release of molecule 5.0 my github action is failing with the following error:
https://github.com/dgibbs64/ansible-role-linux_admin_packages/actions/runs/4759492512/jobs/8458829447

Traceback (most recent call last):
File "/home/runner/.local/bin/molecule", line 8, in
sys.exit(main())
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/runner/.local/lib/python3.10/site-packages/molecule/command/test.py", line 113, in test
base.execute_cmdline_scenarios(scenario_name, args, command_args, ansible_args)
File "/home/runner/.local/lib/python3.10/site-packages/molecule/command/base.py", line 94, in execute_cmdline_scenarios
get_configs(args, command_args, ansible_args, glob_str),
File "/home/runner/.local/lib/python3.10/site-packages/molecule/command/base.py", line 185, in get_configs
configs = [
File "/home/runner/.local/lib/python3.10/site-packages/molecule/command/base.py", line 186, in
config.Config(
File "/home/runner/.local/lib/python3.10/site-packages/molecule/config.py", line 64, in call
obj.after_init()
File "/home/runner/.local/lib/python3.10/site-packages/molecule/config.py", line 116, in after_init
self.config = self._reget_config()
File "/home/runner/.local/lib/python3.10/site-packages/molecule/config.py", line 306, in _reget_config
env = util.merge_dicts(os.environ, self.env)
File "/home/runner/.local/lib/python3.10/site-packages/molecule/config.py", line 201, in env
"MOLECULE_INSTANCE_CONFIG": self.driver.instance_config,
File "/usr/lib/python3.10/functools.py", line 981, in get
val = self.func(instance)
File "/home/runner/.local/lib/python3.10/site-packages/molecule/config.py", line 185, in driver
driver = api.drivers(config=self)[driver_name]
File "/home/runner/.local/lib/python3.10/site-packages/molecule/api.py", line 30, in getitem
return self.dict[i]
KeyError: 'docker'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions