diff options
Diffstat (limited to 'os-plugins/plugins/vmchooser/files/run-virt.sh')
-rw-r--r-- | os-plugins/plugins/vmchooser/files/run-virt.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index 6df6bf84..38dd5ac6 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -69,6 +69,8 @@ vm_name=$(grep -o "short_description param=.*\"" ${xml} | \ # If ${short_description} not defined use ${image_name} # if ${vm_name} not defined use ${imgname} vm_name=${vm_name:-"${imgname%.*}"} +# define vm_shortname since vm_name can be very long +vm_shortname=$(echo ${imgname%.*} | sed -e "s, ,-,g") displayname=${vm_name} # remove blanks vm_name=$(echo ${vm_name} | sed -e "s, ,-,g") |