Skip to content

Commit

Permalink
[backend] fixup nativeonly flag so that it looks good in xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed May 11, 2016
1 parent 5cc1c22 commit 29198b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/bs_dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ sub assignjob {
printlog("worker is gone!");
return undef;
}
$worker->{'hardware'}->{'nativeonly'} = undef if $worker->{'hardware'} && exists($worker->{'hardware'}->{'nativeonly'});

my @args = ("port=$port", "workercode=$workercode", "buildcode=$buildcode");
my $attempt = 0;
Expand Down
1 change: 1 addition & 0 deletions src/backend/bs_repserver
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,7 @@ sub workerstate {
for (qw{job arch}) {
delete $workerskel->{$_};
}
$workerskel->{'hardware'}->{'nativeonly'} = undef if $workerskel->{'hardware'} && exists($workerskel->{'hardware'}->{'nativeonly'});
}
my $idlename = "$harch:$workerid";
$idlename =~ s/\//_/g;
Expand Down

0 comments on commit 29198b9

Please sign in to comment.