Commit 880ff10f authored by fleischmann's avatar fleischmann
Browse files

Add minor delay to docker reset - Squid KNF



This adds a delay to the docker reset command
so that the action doesn't fail.

This change is for the Squid KNF used in the
Hackfest.
Signed-off-by: fleischmann's avatarDominik Fleischmann <dominik.fleischmann@canonical.com>
parent 4f652622
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment