settings client does not need to bootstrap itself, system will do that
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Nov 2005 23:13:47 +0000 (23:13 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Nov 2005 23:13:47 +0000 (23:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1941 dcc99617-32d9-48b4-a31d-7c20da2025e4

OpenSRF/src/perlmods/OpenSRF/System.pm
OpenSRF/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;