From: miker Date: Tue, 1 Nov 2005 23:13:47 +0000 (+0000) Subject: settings client does not need to bootstrap itself, system will do that X-Git-Tag: osrf_rel_2_0_1~1311 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=21d9121769ad0c76dfcdb7d6afb43b43a7fa87c9;p=OpenSRF.git 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 --- 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;