From caede51adbe6a2f22a6e43ad4bd5b12494241de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 15 Sep 2009 12:04:17 +0300 Subject: [PATCH] Fixed vmware library abspath function to use arguments instead of hard coded datastore path. --- vmware/files/scripts/vmware.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware/files/scripts/vmware.sh b/vmware/files/scripts/vmware.sh index 5559ae3..11e879e 100644 --- a/vmware/files/scripts/vmware.sh +++ b/vmware/files/scripts/vmware.sh @@ -62,7 +62,7 @@ abspath() { ;; [*) ds=`echo "$1" | sed -e 's/^\[\(.*\)\] .*$/\1/'` - vmware-vim-cmd hostsvc/datastore/info ds-local | \ + vmware-vim-cmd hostsvc/datastore/info "${ds}" | \ sed -n 's/^[ ]*path = \"\(.*\)\",[ ]*/\1/p' | uniq | tr '\n' '/' echo "$1" | sed -e 's/^\[.*\] \(.*\)$/\1/' ;;