LP1904220: Fix Booking Service Check
authorJason Boyer <JBoyer@equinoxinitiative.org>
Fri, 13 Nov 2020 16:12:22 +0000 (11:12 -0500)
committerMike Rylander <mrylander@gmail.com>
Fri, 13 Nov 2020 17:39:43 +0000 (12:39 -0500)
Instead of trying to tell AppService which router we want to talk
to and confusing it, just tell it we want to talk to a router and
let it do its thing.

Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 66280f5..b8c920f 100644 (file)
@@ -18,12 +18,7 @@ my $desk_renewal_use_circ_lib;
 
 sub determine_booking_status {
     unless (defined $booking_status) {
-        my $router_name = OpenSRF::Utils::Config
-            ->current
-            ->bootstrap
-            ->router_name || 'router';
-
-        my $ses = create OpenSRF::AppSession($router_name);
+        my $ses = create OpenSRF::AppSession("router");
         $booking_status = grep {$_ eq "open-ils.booking"} @{
             $ses->request("opensrf.router.info.class.list")->gather(1)
         };