Skip to content

Commit

Permalink
fix attach when SRC_HOST = DST_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed May 15, 2019
1 parent 42cc72c commit d0d0a02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tm/linstor_un/clone
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ if [ "$CLONE_MODE" = "copy" ]; then
if ! [[ " $DST_RES_HOSTS " =~ " $SRC_HOST " ]]; then
linstor_exec_and_log \
"resource create -s $DISKLESS_POOL $SRC_HOST $DST_RES"
LINSTOR_CLEANUP_RES+=" $SRC_HOST:$DST_RES"
if [ "$SRC_HOST" = "$DST_HOST" ]; then
DST_RES_HOSTS+=" $SRC_HOST"
else
LINSTOR_CLEANUP_RES+=" $SRC_HOST:$DST_RES"
fi
fi

# Clone image from SRC_RES to DST_RES
Expand Down

0 comments on commit d0d0a02

Please sign in to comment.