From 0c7f0619840596dc459ca985e2496a801dd482f0 Mon Sep 17 00:00:00 2001 From: miker Date: Tue, 1 Nov 2005 23:13:47 +0000 Subject: [PATCH] settings client does not need to bootstrap itself, system will do that git-svn-id: svn://svn.open-ils.org/ILS/trunk@1941 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- OpenSRF/src/perlmods/OpenSRF/System.pm | 1 + OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSRF/src/perlmods/OpenSRF/System.pm b/OpenSRF/src/perlmods/OpenSRF/System.pm index 8a5f90c340..0a428bca0e 100644 --- a/OpenSRF/src/perlmods/OpenSRF/System.pm +++ b/OpenSRF/src/perlmods/OpenSRF/System.pm @@ -141,6 +141,7 @@ sub bootstrap { $OpenSRF::Utils::SettingsClient::host_config = $parser->get_server_config($bsconfig->env->hostname); + OpenSRF::System->bootstrap_client(client_name => "system_client"); my $client = OpenSRF::Utils::SettingsClient->new(); my $apps = $client->config_value("activeapps", "appname"); if(ref($apps) ne "ARRAY") { $apps = [$apps]; } diff --git a/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm b/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm index 9609904500..cc0c6259e8 100755 --- a/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm +++ b/OpenSRF/src/perlmods/OpenSRF/Utils/SettingsClient.pm @@ -72,7 +72,6 @@ sub grab_host_config { my $host = shift; warn "Grabbing Host config for $host\n"; - OpenSRF::System->bootstrap_client(client_name => "system_client"); $session = OpenSRF::AppSession->create( "opensrf.settings" ) unless $session; my $bsconfig = OpenSRF::Utils::Config->current; -- 2.43.2