Fixed vmware library abspath function to use arguments instead of hard coded datastore path.
This commit is contained in:
parent
4cd8bd12a0
commit
caede51adb
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ abspath() {
|
||||||
;;
|
;;
|
||||||
[*)
|
[*)
|
||||||
ds=`echo "$1" | sed -e 's/^\[\(.*\)\] .*$/\1/'`
|
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' '/'
|
sed -n 's/^[ ]*path = \"\(.*\)\",[ ]*/\1/p' | uniq | tr '\n' '/'
|
||||||
echo "$1" | sed -e 's/^\[.*\] \(.*\)$/\1/'
|
echo "$1" | sed -e 's/^\[.*\] \(.*\)$/\1/'
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue