"netplan apply" accures temporary directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
During my testing of "netplan apply", I noticed that 1-2 /tmp/netplan_* directories get created and left per "netplan apply" invocation (one directory always gets created, another if --state is passed in). Similar to #1767464, it appears that nothing is calling the cleanup() method on the created ConfigManager() instances.
Due to how the code is structured, there is no good way of guaranteeing that cleanup() will be called other than wrapping the whole "command_apply" function in netplan/
I'm happy to do a PR but would like a little guidance as to which method is preferred.
Changed in netplan: | |
status: | In Progress → Fix Committed |
https:/ /github. com/canonical/ netplan/ pull/259