From c2f82bfd7db133040070bb17c8f0a8ea0cff2ca3 Mon Sep 17 00:00:00 2001 From: thaibault Date: Thu, 8 Aug 2013 18:57:29 +0200 Subject: Fix bug in xml filter. --- .../vmchooser/data/opt/openslx/scripts/vmchooser-xml_filter | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'remote') diff --git a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-xml_filter b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-xml_filter index 1f6c5985..697c2fe2 100755 --- a/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-xml_filter +++ b/remote/modules/vmchooser/data/opt/openslx/scripts/vmchooser-xml_filter @@ -40,12 +40,11 @@ function handlePersistentVM() { # user we provide an additional persistent version. local imageName=$(basename "$(grep -io '/dev/null && \ - local imagePath="$(pwd)/$imageName" - cd - >/dev/null && \ + eval export SLX_VM_PERSISTENT_PATH="${SLX_VM_PERSISTENT_PATH}" && \ + local imagePath="${SLX_VM_PERSISTENT_PATH}${imageName}" local persistentConfigVersionFilePath="$(mktemp --directory)/$(basename \ "$1")" && \ - "$(dirname "$0")/vmchooser-clc" -d -v "$1" \ + "$(dirname "$0")/vmchooser-clc" "$1" \ "$persistentConfigVersionFilePath" --create-persistent-config \ "$imagePath" && \ echo "$persistentConfigVersionFilePath" -- cgit v1.2.3-55-g7522