On 04.06.2019 09:05, Wawrzek Niewodniczanski wrote:
Hi,
I'm looking to peek into an Ansible module. It is the 'unarchvie'
module which in special circumstances is not idempotent
(https://github.com/ansible/ansible/issues/57303). I read the code. It
looks sensible to me. Now, I would like to check how it actually works
with some data.
The unarchive has some nice debug option but they are commented out on
line 436[1], 590[2] and 870[3].
And with the callback plugin debug you get some nice output, and you can
always add more "err +=" to get more output.
I might have spotted the bug in finding the debug line numbers, this PR
43479[4] in line 317
pwname has become pwnam
[1]
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/files/unarchive.py#L436
[2]
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/files/unarchive.py#L590
[3]
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/files/unarchive.py#L870
[4]
https://github.com/ansible/ansible/pull/43479/files#diff-5947943aa1aba46541842caf34f526aeR317
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a2c8d4e454a20a3c8268be87356eb21b%40olstad.com.
For more options, visit https://groups.google.com/d/optout.