pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

files.put(mode=True) always reports changed == True

Open cdleonard opened this issue 1 year ago • 0 comments

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

cdleonard avatar Jul 01 '24 13:07 cdleonard