Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defer creation of ConfigManager tmpdir until needed #23

Merged
merged 1 commit into from May 25, 2018

Conversation

raharper
Copy link
Collaborator

The ConfigManager object creates a tempdir upon instatiation, but due to how commands are loaded, the cleanup method isn't called for commands outside of 'try'. Resolve this by deferring the tmpdir creation by use of @Property allowing the first caller of config_manager to trigger the initialization.

LP: #1767464

@cyphermox cyphermox merged commit 05f6149 into canonical:master May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants