settings client does not need to bootstrap itself, system will do that
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 1 Nov 2005 23:13:47 +0000 (23:13 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 1 Nov 2005 23:13:47 +0000 (23:13 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@562 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/System.pm
src/perlmods/OpenSRF/Utils/SettingsClient.pm

index 8a5f90c..0a428bc 100644 (file)
@@ -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]; }
index 9609904..cc0c625 100755 (executable)
@@ -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;