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>
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)
};