summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2021-06-30 12:28:44 +0200
committerSimon Rettberg2021-06-30 12:28:44 +0200
commite5e0f36e2e9ae6fbf90ba926d4689114b9576e1c (patch)
tree0e8cd7551e78d13c62c4d94bf96b40f4fc383586
parent[qemu] Change location of the runvirt Java plugin (diff)
downloadmltk-e5e0f36e2e9ae6fbf90ba926d4689114b9576e1c.tar.gz
mltk-e5e0f36e2e9ae6fbf90ba926d4689114b9576e1c.tar.xz
mltk-e5e0f36e2e9ae6fbf90ba926d4689114b9576e1c.zip
[run-virt] Fix sed expression for VM_CLEANNAME generation
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
index ff5c736c..b4ab4c1c 100644
--- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
+++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
@@ -49,7 +49,7 @@ parse_xml() {
readonly VM_DISPLAYNAME
# Define VM_CLEANNAME since VM_DISPLAYNAME can be long and contain weird characters
- declare -rg VM_CLEANNAME=$(echo "${VM_DISPLAYNAME:0:32}" | sed -r 's/[^0-9a-zA-Z_-\.]+/_/g')
+ declare -rg VM_CLEANNAME=$(echo "${VM_DISPLAYNAME:0:32}" | sed -r 's/[^0-9a-zA-Z_\-\.]+/_/g')
# image is for the following virtual machine
declare -rg PLUGIN_ID=$(get_xml "virtualmachine")