ansible_mitogen: Decouple possible_pythons order & error handling
'python' could now be tried earlier, or not at all.
This commit is contained in:
parent
356be2e65f
commit
51c7b789f7
|
@ -485,8 +485,7 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase):
|
||||||
# TODO: what exception is thrown?
|
# TODO: what exception is thrown?
|
||||||
except:
|
except:
|
||||||
# we've reached the last python attempted and failed
|
# we've reached the last python attempted and failed
|
||||||
# TODO: could use enumerate(), need to check which version of python first had it though
|
if possible_python == possible_pythons[-1]:
|
||||||
if possible_python == 'python':
|
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -30,6 +30,8 @@ In progress (unreleased)
|
||||||
discovery attributes
|
discovery attributes
|
||||||
* :gh:issue:`1213` :mod:`ansible_mitogen`: Rename Mitogen interpreter discovery
|
* :gh:issue:`1213` :mod:`ansible_mitogen`: Rename Mitogen interpreter discovery
|
||||||
attributes
|
attributes
|
||||||
|
* :gh:issue:`1213` :mod:`ansible_mitogen`: Decouple possible_pythons order &
|
||||||
|
error handling
|
||||||
|
|
||||||
|
|
||||||
v0.3.21 (2025-01-20)
|
v0.3.21 (2025-01-20)
|
||||||
|
|
Loading…
Reference in New Issue