From e5e0f36e2e9ae6fbf90ba926d4689114b9576e1c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 30 Jun 2021 12:28:44 +0200 Subject: [run-virt] Fix sed expression for VM_CLEANNAME generation --- .../opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.3-55-g7522