Skip to content
Snippets Groups Projects
Commit 602e3fe0 authored by aticig's avatar aticig
Browse files

Small fix in Squid delete action


Signed-off-by: aticig's avataraticig <gulsum.atici@canonical.com>
parent 6844055a
No related branches found
No related tags found
1 merge request!181Small fix in Squid delete action
Pipeline #4746 passed with stage
in 2 minutes and 19 seconds
......@@ -42,7 +42,7 @@ class SquidCluster(ops.framework.Object):
def delete_url(self, url: str):
if self.framework.model.unit.is_leader():
allowed_urls = self.allowed_urls
self.framework.model.unit.status = ops.model.ActiveStatus(self.allowed_urls)
self.framework.model.unit.status = ops.model.ActiveStatus(repr(self.allowed_urls))
if url in allowed_urls:
allowed_urls.remove(url)
self.update_allowed_urls(allowed_urls)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment