[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn at source.lon-capa.org
Wed Sep 21 00:43:39 EDT 2016
raeburn Wed Sep 21 04:43:39 2016 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- On a multi-domain server, course's homeserver may be different from the
lonHostID.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1320 loncom/lonnet/perl/lonnet.pm:1.1321
--- loncom/lonnet/perl/lonnet.pm:1.1320 Wed Sep 14 20:29:40 2016
+++ loncom/lonnet/perl/lonnet.pm Wed Sep 21 04:43:38 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1320 2016/09/14 20:29:40 raeburn Exp $
+# $Id: lonnet.pm,v 1.1321 2016/09/21 04:43:38 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7920,7 +7920,7 @@
&logthis('fetch_enrollment_query error: '.$reply.' for '.$dom.' '.$env{'user.name'}.' for '.$queryid.' context: '.$context.' '.$cnum.' maxtries: '.$maxtries.' tries: '.$tries);
} else {
my @responses = split(/:/,$reply);
- if ($homeserver eq $perlvar{'lonHostID'}) {
+ if (grep { $_ eq $homeserver } ¤t_machine_ids()) {
foreach my $line (@responses) {
my ($key,$value) = split(/=/,$line,2);
$$replyref{$key} = $value;
More information about the LON-CAPA-cvs
mailing list