web/modules
Jan Pazdziora
adelton at fedoraproject.org
Thu Jun 21 13:41:22 UTC 2012
web/modules/rhn/RHN/DBI.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 928fca32e1f03b0cb9052fca335742425b809325
Author: Jan Pazdziora <jpazdziora at redhat.com>
Date: Thu Jun 21 15:41:09 2012 +0200
For the localhost:5432 case, use the Unix socket local connection.
diff --git a/web/modules/rhn/RHN/DBI.pm b/web/modules/rhn/RHN/DBI.pm
index 0813b2c..c47a369 100644
--- a/web/modules/rhn/RHN/DBI.pm
+++ b/web/modules/rhn/RHN/DBI.pm
@@ -48,10 +48,10 @@ sub _get_dbi_connect_parameters {
} else {
$DSN = "dbi:Pg:dbname=$dbname";
my $host = PXT::Config->get("db_host");
- if (defined $host and $host ne '') {
+ if (defined $host and $host ne '' and $host ne 'localhost') {
$DSN .= ";host=$host";
my $port = PXT::Config->get("db_port");
- if (defined $port and $port ne '') {
+ if (defined $port and $port ne '' and $port ne '5432') {
$DSN .= ";port=$port";
}
}
More information about the spacewalk-commits
mailing list