Open mizdebsk opened 1 week ago
@mizdebsk I didn't notice you also provided a fix, thanks for that. But... I don't want to sound ungrateful, yet I'd prefer my patch, there's also a bug in handling of playbooks
key (which is still supported in fmf files), and includes an improvement to a library function that's exactly the right for the job.
Thanks for your better fix @happz. I wrote my patch to make tmt work for me because I didn't expect any fix that quickly, but I'll happily switch to yours.
When trying to run
prepare --how ansible
from command line, tmt crashes with an exception.I'm using latest tmt from main branch (commit 9717fc412d27256a10e7eef5319cc279ec3c4e2c).
Reproducer:
Initialize new tmt tree with
tmt init
Write Ansible playbook as
hello.yml
with the following contents:Expected results:
Preparations are applied without error.
Actual results: