diff options
| author | Mark J. Nelson <Mark.J.Nelson@Oracle.COM> | 2010-05-24 14:32:16 -0600 |
|---|---|---|
| committer | Mark J. Nelson <Mark.J.Nelson@Oracle.COM> | 2010-05-24 14:32:16 -0600 |
| commit | 84bb51db52515f628cb1781523b3574cbfe72c74 (patch) | |
| tree | 52ce3917e5e73022684a6b29ca3a87efb1aa256a /usr/src | |
| parent | 3b63dc11794aaa3e056b0e621f873a9738a817ae (diff) | |
| download | illumos-joyent-84bb51db52515f628cb1781523b3574cbfe72c74.tar.gz | |
6953156 dblookups should be more robust to app server outage
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/tools/onbld/Checks/DbLookups.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/src/tools/onbld/Checks/DbLookups.py b/usr/src/tools/onbld/Checks/DbLookups.py index 8af17f2a4e..e474b404e6 100644 --- a/usr/src/tools/onbld/Checks/DbLookups.py +++ b/usr/src/tools/onbld/Checks/DbLookups.py @@ -21,15 +21,15 @@ # # -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. +# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. # # # Various database lookup classes/methods, i.e.: # * monaco # * bugs.opensolaris.org (b.o.o.) -# * arc.opensolaris.org/cgi-bin/arc.cgi (for ARC) +# * arc.opensolaris.org/cgi-bin/arc.cgi (for ARC off SWAN) +# * candi.sfbay.sun.com/cgi-bin/arc.cgi (for ARC on SWAN) # import csv @@ -246,7 +246,10 @@ class ARCException(Exception): def ARC(arclist, arcPath=None): if not arcPath: - arcPath = "http://arc.opensolaris.org/cgi-bin/arc.cgi" + if onSWAN(): + arcPath = "http://candi.sfbay.sun.com/cgi-bin/arc.cgi" + else: + arcPath = "http://arc.opensolaris.org/cgi-bin/arc.cgi" fields = ["present", "arc", "year", "case", "status", "title"] opts = [("case", "%s/%s" % (a, c)) for a, c in arclist] req = urllib2.Request(arcPath, urllib.urlencode(opts)) |
