Remove unused cleanup function

This commit is contained in:
Brian Cain 2020-03-04 16:19:38 -08:00
parent c7f8ac8101
commit 6427576edd
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0

View File

@ -9,15 +9,6 @@ root="$( cd -P "$( dirname "$csource" )/../" && pwd )"
pushd "${root}" > "${output}"
# Define a custom cleanup function to destroy any orphan guests
# on the packet device
function cleanup() {
(>&2 echo "Cleaning up packet device")
unset PACKET_EXEC_PERSIST
pkt_wrap_stream "cd vagrant;VAGRANT_CWD=test/vagrant-spec/ VAGRANT_VAGRANTFILE=Vagrantfile.spec vagrant destroy -f" \
"Vagrant command failed"
}
# Ensure we have a packet device to connect
echo "Creating packet device if needed..."