From a3c05e37680a81ff3a9d83e149de95be0fe407a3 Mon Sep 17 00:00:00 2001 From: Paul Larson Date: Thu, 21 Nov 2024 09:23:25 -0600 Subject: [PATCH] Update tf-cleanup for this branch to keep current with PR#382 that was just merged (#405) --- .../src/tf-cmd-scripts/tf-cleanup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/charms/testflinger-agent-host-charm/src/tf-cmd-scripts/tf-cleanup b/agent/charms/testflinger-agent-host-charm/src/tf-cmd-scripts/tf-cleanup index 46c9b5a0..35e7de0e 100755 --- a/agent/charms/testflinger-agent-host-charm/src/tf-cmd-scripts/tf-cleanup +++ b/agent/charms/testflinger-agent-host-charm/src/tf-cmd-scripts/tf-cleanup @@ -2,6 +2,10 @@ AGENT=$(echo $agent_id | sed 's/-\([0-9]*\)$/\1/g') PROVISION_TYPE="$provision_type" + +# The following variables are set by the agent charm +AGENT_CONFIGS_PATH={{ agent_configs_path }} +CONFIG_DIR="{{ config_dir }}" VIRTUAL_ENV_PATH="{{ virtual_env_path }}" echo Cleaning up container if it exists... && docker rm -f $AGENT || /bin/true