pyinfra
pyinfra copied to clipboard
files.put(mode=True) always reports changed == True
When using files.put to copy an executable script to the target it always shows up as "changed". This can slow down scripts which check the "changed" bit in order to decide if further changes are required.
This works fine without passing the mode argument.
This also works as expected if the mode argument is an explicit value like "400" or "500".
Happens with both pyinfra 3.0b4 and v2.9.2