mirror of https://github.com/ansible/ansible.git
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.pypull/42276/merge
parent
c227a0c8bb
commit
9350a81ae4
@ -0,0 +1,6 @@
|
||||
---
|
||||
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.
|
Loading…
Reference in New Issue