ansible/changelogs/fragments/cleanup__file__.yaml
Toshio Kuratomi 9350a81ae4 Port modules away from __file__
* __file__ won't work if we want to invoke modules via -m or if we
  figure out how to keep modules from hitting the disk with pipelining.
* module.tmpdir is the new way to place a file where it will be cleaned
  automatically.

Change format string to not depend on __file__:

* cloud/amazon/ec2_elb_lb.py
* cloud/amazon/elb_classic_lb.py

Use module.tempdir:

* packaging/os/apt.py
* files/unarchive.py
2018-07-09 15:51:20 -07:00

6 lines
324 B
YAML

---
minor_changes:
- The apt, ec2_elb_lb, elb_classic_lb, and unarchive modules have been ported
away from using __file__. This is futureproofing as__file__ won't work if we
switch to using python -m to invoke modules in the future or if we figure out
a way to make a module never touch disk for pipelining purposes.