1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

feature #1307: SUDO for detach in VMware

(cherry picked from commit bba9b507151dee3839300bd38d7da0c36b7e77e8)
This commit is contained in:
Tino Vazquez 2012-06-25 14:41:55 +02:00
parent 4b9100edd3
commit 533c555b05

View File

@ -26,7 +26,7 @@ UNIT_NUMBER="$4"
CONTROLLER_NUMBER=0 # Only one controller at the moment (up to 16 devices)
# Get the VMware ID corresponding to the deploy_id
VMWAREID=`vim-cmd vmsvc/getallvms|grep $DEPLOYID|cut -d' ' -f 1`
VMWAREID=`$SUDO vim-cmd vmsvc/getallvms|grep $DEPLOYID|cut -d' ' -f 1`
DETACH_PARAMS="$VMWAREID $CONTROLLER_NUMBER $UNIT_NUMBER $IMAGE_PATH"