Skip to content

Commit

Permalink
[backend] specify hostlabel only once
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Feb 8, 2013
1 parent f34b297 commit 6c49c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/obsworker
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ case "$1" in
chmod 755 bs_worker
popd > /dev/null

for i in $OBS_WORKER_HOSTLABELS; do
HOSTLABELS="$HOSTLABELS --hostlabel $i"
done
OBS_WORKER_OPT1="$OBS_WORKER_OPT"
I=0
while test "$NUM" -gt "$I"; do
Expand All @@ -205,9 +208,6 @@ case "$1" in
WORKERID="${HOSTNAME}:$I"
R=$OBS_WORKER_DIRECTORY/root_$I
# prepare obsworker startup in screen...
for i in $OBS_WORKER_HOSTLABELS; do
HOSTLABELS="$HOSTLABELS --hostlabel $i"
done
TMPFS=
if [ -n "$vmopt" -a "$OBS_VM_TYPE" = "xen" -o "$OBS_VM_TYPE" = "kvm" ]; then
mkdir -p $R
Expand Down

0 comments on commit 6c49c65

Please sign in to comment.