diff --git a/magma/hackfest_squid_cnf/charms/squid/src/charm.py b/magma/hackfest_squid_cnf/charms/squid/src/charm.py index f15c42e4d3931c307b6c18e1b4f8c42337a62d5e..663410e5323d210ecadb3c5c683c8bbf6d1121c2 100755 --- a/magma/hackfest_squid_cnf/charms/squid/src/charm.py +++ b/magma/hackfest_squid_cnf/charms/squid/src/charm.py @@ -110,7 +110,7 @@ class SquidK8SCharm(CharmBase): if line_deleted: event.set_results({"output": "URL deleted succesfully"}) - subprocess.check_output("kill -HUP `cat /var/run/squid.pid`", shell=True) + subprocess.Popen("sleep 1 && kill -HUP `cat /var/run/squid.pid`", shell=True) else: event.fail("No URL was deleted")