From 42e3a8e72372c3831651d3f8613209992aa90c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Logerais=20=28Numericable=20-=20Ing=C3=A9nierie?= =?UTF-8?q?=20Syst=C3=A8me=29?= Date: Thu, 5 Dec 2013 13:41:54 +0100 Subject: [PATCH] Modified lib virtualization --- libs/virtualization.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/virtualization.bash b/libs/virtualization.bash index c31b798..ec36652 100755 --- a/libs/virtualization.bash +++ b/libs/virtualization.bash @@ -7,6 +7,7 @@ hypervisor_connect() { echo echo "Trying to start interactive virsh session on ${hypervisor}" + term_change_title "virsh session for ${USER} on ${hypervisor}" virsh --connect=qemu+ssh://${USER}@${hypervisor}/system } @@ -96,6 +97,7 @@ vm_connect() { echo echo "Trying to connect to ${name} on ${hypervisor} with virsh" + term_change_title "virsh session for ${USER} on ${hypervisor} : ${name} console" virsh --connect=qemu+ssh://${USER}@${hypervisor}/system ttyconsole ${name} virsh --connect=qemu+ssh://${USER}@${hypervisor}/system console ${name} @@ -139,7 +141,7 @@ _hypervisors() { configured_hypervisors=$(cat ~/.ssh/config | egrep -i "^\s*host\s+[a-zA-Z]" | sed -e "s/^host\s*//i" | grep -i hypervisor) fi if [ -e ~/.ssh/known_hosts ]; then - known_hypervisors=$(cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | grep -v "\[" | grep -i hypervisor | uniq) + known_hypervisors=$(cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e 's/,.*//g' | grep -v "\[" | grep -i hypervisor | uniq) fi echo $configured_hypervisors $known_hypervisors }