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
I have a pytest test function that uses pytest.mark.ansible to specify host_pattern. Up to pytest-ansible version 4.1.1, this was sufficient to have the host pattern specified.
Starting with pytest-ansible version 24.1.0 though, it is in addition required to specify the --host-pattern command line option on the pytest command, even when pytest.mark.ansible specifies host_pattern. If one does not provide this command line option, pytest fails with the following error:
I tracked this change in behavior down to commit 1518c54. That is the first commit that causes the above error message to be displayed when not using the --host-pattern command line option.
Looking at the change of that commit, I was not able to figure out how that could possibly have caused this change.
Can this please be changed again as it was before?
The text was updated successfully, but these errors were encountered:
I have a pytest test function that uses
pytest.mark.ansible
to specifyhost_pattern
. Up to pytest-ansible version 4.1.1, this was sufficient to have the host pattern specified.Starting with pytest-ansible version 24.1.0 though, it is in addition required to specify the
--host-pattern
command line option on thepytest
command, even whenpytest.mark.ansible
specifieshost_pattern
. If one does not provide this command line option, pytest fails with the following error:I tracked this change in behavior down to commit 1518c54. That is the first commit that causes the above error message to be displayed when not using the
--host-pattern
command line option.Looking at the change of that commit, I was not able to figure out how that could possibly have caused this change.
Can this please be changed again as it was before?
The text was updated successfully, but these errors were encountered: