pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

exclude _chdir from global arguments used when removing temporary file (fix #1426)

Open morrison12 opened this issue 4 months ago • 0 comments

The _chdir may require the _sudo which has been removed from arguments and thus given it isn't need for the rm, we remove the _chdir to avoid it failing due to the lack of the sudo

Intended to fix #1426

  • [ x ] Pull request is based on the default branch (3.x at this time)
  • [ x ] Pull request includes tests for any new/updated operations/facts
  • [ x ] Pull request includes documentation for any new/updated operations/facts
  • [x ] Tests pass (see scripts/dev-test.sh)
  • [ x] Type checking & code style passes (see scripts/dev-lint.sh)

morrison12 avatar Aug 12 '25 14:08 morrison12