Skip to content

Commit b539e71

Browse files
committed
testing
testing
1 parent bae7b63 commit b539e71

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/init.d-attach-static-vdis

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ STATE_DIR=/etc/xensource/static-vdis
1010
# Source function library.
1111
. /etc/init.d/functions
1212

13+
OUTPUT=$(/opt/xensource/bin/static-vdis detach ${UUID} 2>&1)
14+
if [ $? -ne 0 ]; then
15+
logger "Attempt to detach VDI: ${UUID} failed -- skipping (Error was: ${OUTPUT})"
16+
fi
1317
clear_stale_state(){
1418
for i in $(ls -1 ${STATE_DIR}); do
1519
# Clear the now-stale symlink to the attached disk. From this point the disk will
@@ -60,7 +64,7 @@ start() {
6064
clear_stale_state
6165
attach_all
6266
RC=$?
63-
echo
67+
echo
6468
return $RC
6569
}
6670

0 commit comments

Comments
 (0)