From 21d9121769ad0c76dfcdb7d6afb43b43a7fa87c9 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/OpenSRF/trunk@562 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perlmods/OpenSRF/System.pm | 1 + src/perlmods/OpenSRF/Utils/SettingsClient.pm | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perlmods/OpenSRF/System.pm b/src/perlmods/OpenSRF/System.pm index 8a5f90c..0a428bc 100644 --- a/src/perlmods/OpenSRF/System.pm +++ b/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/src/perlmods/OpenSRF/Utils/SettingsClient.pm b/src/perlmods/OpenSRF/Utils/SettingsClient.pm index 9609904..cc0c625 100755 --- a/src/perlmods/OpenSRF/Utils/SettingsClient.pm +++ b/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.11.0