From 56eb2354e4b4bb51f9cdf1038f8b4f79adc8baa3 Mon Sep 17 00:00:00 2001
From: Vlad Naboichenko <vn382u@att.com>
Date: Thu, 16 Nov 2017 13:37:47 -0800
Subject: [PATCH] Remove keypair after vm launch script

This will allow to re-launch vm_heat_launch.sh if needed
without errors

Change-Id: I564baa00727645311887d32cf9908e95d849adb0
---
 tools/gate/openstack/vm_heat_launch.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/gate/openstack/vm_heat_launch.sh b/tools/gate/openstack/vm_heat_launch.sh
index 1e85591fd1..058868bced 100755
--- a/tools/gate/openstack/vm_heat_launch.sh
+++ b/tools/gate/openstack/vm_heat_launch.sh
@@ -65,3 +65,7 @@ ssh -i ${KEYPAIR_LOC} cirros@${FLOATING_IP} curl http://artscene.textfiles.com/a
 
 # Remove the test stack
 $OPENSTACK stack delete ${OSH_BASIC_VM_STACK}
+
+#Remove keypair
+$OPENSTACK keypair delete ${OSH_VM_KEY_STACK}
+rm ${KEYPAIR_LOC}