summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc')
-rw-r--r--remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc b/remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
index eb699ec0..d40d97bb 100644
--- a/remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
+++ b/remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
@@ -13,6 +13,8 @@ get_xml () {
| sed 's/&amp;/+/g;s/&quot;/"/g;s/&lt;/</g;s/&gt;/>/g'
}
+IMGUUID=$(get_xml "uuid")
+
# # Name of the virt image
SRC_IMG_ABSOLUTE=$(get_xml "image_path")
SRC_IMG_RELATIVE=$(get_xml "image_name")
@@ -48,12 +50,14 @@ PLUGIN_ID=$(grep -o 'virtualmachine param=.*"' "${xmlfile}" \
# it will yield the default entries later on.
VM_OS_TYPE=$(get_xml "os")
+readonly IMGUUID
readonly SRC_IMG_ABSOLUTE SRC_IMG_RELATIVE
readonly IMG_BASENAME
readonly VM_DISPLAYNAME VM_NAME_CLEAN
readonly PLUGIN_ID
readonly VM_OS_TYPE
+writelog "VM UUID: $IMGUUID"
writelog "Virtualization plugin: $PLUGIN_ID"
writelog "VM name: $VM_DISPLAYNAME"
writelog "VM short name: $VM_NAME_CLEAN"