mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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
This commit is contained in:
6
changelogs/fragments/cleanup__file__.yaml
Normal file
6
changelogs/fragments/cleanup__file__.yaml
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user