Skip to content

Drop hardcoded /tmp path#701

Open
freyes wants to merge 1 commit into
openstack-charmers:masterfrom
freyes:fix-tmpdir
Open

Drop hardcoded /tmp path#701
freyes wants to merge 1 commit into
openstack-charmers:masterfrom
freyes:fix-tmpdir

Conversation

@freyes

@freyes freyes commented Jun 19, 2026

Copy link
Copy Markdown
Member

Use tempfile.gettempdir() instead of a hardcode '/tmp', this allows callers to use a different temporary directory, this is specially usefull when using a strictly confined juju snap that doesn't acccess to /tmp.

Use tempfile.gettempdir() instead of a hardcode '/tmp', this allows
callers to use a different temporary directory, this is specially
usefull when using a strictly confined juju snap that doesn't acccess to
/tmp.

Signed-off-by: Felipe Reyes <felipe.reyes@canonical.com>
@freyes freyes requested a review from dosaboy June 19, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant