Skip to content

Commit 4a86627

Browse files
committed
Update batch-vm.sh
1 parent 7784f4c commit 4a86627

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

batch-vm.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ while true;do
143143
exit 1
144144
fi
145145

146-
sed -i /$vm_ip/d /root/.ssh/known_hosts >> /dev/null
147-
148146
#create volume
149147
vol_name='vol-'$vm_name
150148
echo -n 'create volume '$vol_name
@@ -189,6 +187,7 @@ while true;do
189187
nova volume-attach $vm_id $vol_id >>/dev/null
190188
echo 'mounting volume.....'
191189

190+
sed -i /$vm_ip/d /root/.ssh/known_hosts
192191

193192
./set_trust.sh $vm_ip $net $vm_password >> /dev/null
194193

0 commit comments

Comments
 (0)