You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A possible solution is to define a prefix (e.g. custom-) or a set of prefix (e.g. custom-, molecule-, ... ) that make possible the validation. This will make the validation more flexible while maintaining the guarantee that the user is not misspelling standard driver names.
The text was updated successfully, but these errors were encountered:
@apatard Thank you for pointing out #3689: I missed it!
Since the proposed solution in #3765 is still under development, and it seems a bit complex, I'd like to propose to the community my idea of allowing driver name with prefixes molecule or custom.
I created a draft PR #3795 to demonstrate and, hopefully, discuss the idea.
Feel free to close this issue if you think it's best :)
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Detail any linters or test runners used:
Desired Behavior
We are developing a custom molecule driver.
Unfortunately, at the moment, it seems no possible to use it.
The reasons that pushed us to create a custom driver are:
Actual Behaviour
First, we install the custom driver:
pip install custom_driver_name
Then, we check that it is listed among the molecule drivers
>> molecule drivers ╶───────────────────────────────────────────────────────── delegated custom_driver_name
But then, when we try to use it from
molecule <command> -d custom_driver_name
the following error is shown:Error: Invalid value for '--driver-name' / '-d': 'custom_driver_name is not one of 'delegated', 'docker', 'podman'.
This is error is due to a validation fail
Possible solution
A possible solution is to define a prefix (e.g.
custom-
) or a set of prefix (e.g.custom-
,molecule-
, ... ) that make possible the validation. This will make the validation more flexible while maintaining the guarantee that the user is not misspelling standard driver names.The text was updated successfully, but these errors were encountered: