summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
diff options
context:
space:
mode:
authorSimon Rettberg2016-10-24 14:01:03 +0200
committerSimon Rettberg2016-10-24 14:01:03 +0200
commitc274a008fd2a67388db1064a1ae1753018ef30d0 (patch)
tree2d183d4417d1e38326011ec8e35b07d5e0231342 /remote/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/get_xml_file_variables.inc
parent[run-virt/...] More cleanup, refactoring, comments (diff)
downloadtm-scripts-c274a008fd2a67388db1064a1ae1753018ef30d0.tar.gz
tm-scripts-c274a008fd2a67388db1064a1ae1753018ef30d0.tar.xz
tm-scripts-c274a008fd2a67388db1064a1ae1753018ef30d0.zip
[run-virt] Fix misspelled variable, extract UUID from xml again
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"