From dba2a10f5d9a3c23ecaaa5adabf9f8517c340b96 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 16 Feb 2005 18:02:24 +0000 Subject: [PATCH] now we only get the router target from the bootstrap file if we are connecting to 'settings' git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@76 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perlmods/OpenSRF/AppSession.pm | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/perlmods/OpenSRF/AppSession.pm b/src/perlmods/OpenSRF/AppSession.pm index b8fa4c2..1e901a6 100644 --- a/src/perlmods/OpenSRF/AppSession.pm +++ b/src/perlmods/OpenSRF/AppSession.pm @@ -200,21 +200,20 @@ sub create { } my $r_id; - my $conf = OpenSRF::Utils::Config->current; - if(!$conf) { die("No transport target for $app!"); } - $r_id = $conf->targets->$app->[0] || #just the first for now... - die("No transport target for $app!"); -=head lasdf + if( $app eq "settings" ) { + my $conf = OpenSRF::Utils::Config->current; + if(!$conf) { die("No transport target for $app!"); } + $r_id = $conf->targets->$app->[0] || #just the first for now... + die("No transport target for $app!"); } else { - my $targets = $config_client->config_value("apps",$app,"transport_targets", "transport_target"); + my $targets = $config_client->config_value("apps",$app,"transport_targets", "router_target"); if( !ref($targets) ) { $targets = [ $targets ]; } # XXX for now, just use the first $r_id = $targets->[0] || die("No transport target for $app!"); } -=cut my $peer_handle = OpenSRF::Transport::PeerHandle->retrieve("client"); if( ! $peer_handle ) { -- 2.11.0