[open-ils-commits] r7946 - trunk/Open-ILS/src/reporter
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 30 16:29:50 EDT 2007
Author: dbs
Date: 2007-10-30 16:15:13 -0400 (Tue, 30 Oct 2007)
New Revision: 7946
Modified:
trunk/Open-ILS/src/reporter/clark-kent.pl
Log:
Update the database name attribute to match opensrf.xml.example
Modified: trunk/Open-ILS/src/reporter/clark-kent.pl
===================================================================
--- trunk/Open-ILS/src/reporter/clark-kent.pl 2007-10-30 18:35:45 UTC (rev 7945)
+++ trunk/Open-ILS/src/reporter/clark-kent.pl 2007-10-30 20:15:13 UTC (rev 7946)
@@ -50,11 +50,11 @@
my $db_driver = $sc->config_value( reporter => setup => database => 'driver' );
my $db_host = $sc->config_value( reporter => setup => database => 'host' );
my $db_port = $sc->config_value( reporter => setup => database => 'port' );
-my $db_name = $sc->config_value( reporter => setup => database => 'name' );
+my $db_name = $sc->config_value( reporter => setup => database => 'db' );
my $db_user = $sc->config_value( reporter => setup => database => 'user' );
my $db_pw = $sc->config_value( reporter => setup => database => 'password' );
-die "I don't seem to be configured" unless ($db_driver && $db_host && $db_port && $db_name && $db_user);
+die "Unable to retrieve database connection information from the settings server" unless ($db_driver && $db_host && $db_port && $db_name && $db_user);
my $email_server = $sc->config_value( email_notify => 'smtp_server' );
my $email_sender = $sc->config_value( email_notify => 'sender_address' );
@@ -140,7 +140,7 @@
$dbh->disconnect;
-# Now we spaun the report runners
+# Now we spawn the report runners
for my $r ( @reports ) {
next if (safe_fork());
More information about the open-ils-commits
mailing list