Remove warning displayed from ssh commands in baremetal test 85/122085/1
authorTodd Malsbary <todd.malsbary@intel.com>
Mon, 21 Jun 2021 19:13:29 +0000 (12:13 -0700)
committerTodd Malsbary <todd.malsbary@intel.com>
Mon, 21 Jun 2021 19:17:19 +0000 (12:17 -0700)
Issue-ID: MULTICLOUD-1324
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: If2845857cd72768b0a1c6cf3831e64f3dc412ebf

kud/tests/_functions.sh

index 7a3e97a..10f8e09 100755 (executable)
@@ -27,7 +27,7 @@ function print_msg {
 
 function ssh_cluster {
     master_ip=$(kubectl cluster-info | grep "Kubernetes master" | awk -F '[:/]' '{print $4}')
-    ssh -o StrictHostKeyChecking=no ${master_ip} -- "$@"
+    ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${master_ip} -- "$@"
 }
 
 function get_ovn_central_address {