pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.91k stars 382 forks source link

files.block prepends a dollar sign when markers exist but content does not match #1028

Closed mgranville closed 9 months ago

mgranville commented 1 year ago

Describe the bug

files.block prepends a dollar sign when markers exist but content does not match. I suspect the bug is here https://github.com/pyinfra-dev/pyinfra/blob/7540c41fa0284b8dd80dcbea24d3616414484d60/pyinfra/operations/files.py#L1765

stone-w4tch3r commented 10 months ago

@Fizzadar this can be closed)

Fizzadar commented 9 months ago

Thank you @stone-w4tch3r for the fix 🙏!