ansible/molecule

molecule init scenario -d <anydriver> fails with invalid value

khurley opened this issue · 1 comments

Prerequisites

  • This was not already reported in the past (duplicate check)
  • It does reproduce it with code from main branch (latest unreleased version)
  • I include a minimal example for reproducing the bug
  • The bug is not trivial, as for those a direct pull-request is preferred
  • Running pip check does not report any conflicts
  • I was able to reproduce the issue on a different machine
  • The issue is not specific to any driver other than 'default' one

Environment

$ molecule --version
molecule 6.0.3 using python 3.9
ansible:2.15.13
default:6.0.3 from molecule

What happened

I am trying to specify a driver name of 'podman' or 'vagrant' and molecule rejects the name for the driver.

$ molecule init scenario -d podman oscontainers
Usage: molecule init scenario [OPTIONS] [SCENARIO_NAME]
Try 'molecule init scenario --help' for help.

Error: Invalid value for '--driver-name' / '-d': 'podman' is not 'default'.

Reproducing example

This is failing at the command line - there is no example