juju / python-libjuju

Python library for the Juju API
Apache License 2.0
59 stars 99 forks source link

Fix issue with microk8s proxy #1044

Closed Aflynn50 closed 5 months ago

Aflynn50 commented 5 months ago

The temporary file used to store the ca_cert was set to delete itself on close. This meant that when it was accessed multiple times it would no longer be present.

Set to not delete on close and to remove file when the proxy is deleted.

QA Steps

juju bootstrap microk8s
juju add-model default
juju deploy cos-lite

In python

from juju import model
m = model.Model()
await m.connect()
await m.create_offer("grafana:grafana-dashboard", "grafana-dashboards")
await m.disconnect()

Check all resource in /tmp have been cleaned up

Fixes #1040

Aflynn50 commented 5 months ago

/merge