[#255] undefined host error in netdisco-do psql

This commit is contained in:
Oliver Gorwits
2015-11-19 11:55:21 +00:00
parent 401c9e021a
commit 57640180bd
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2.033005
[BUG FIXES]
* [#255] undefined host error in netdisco-do psql
2.033004 - 2015-11-16
[BUG FIXES]

View File

@@ -184,7 +184,7 @@ unless ($action) {
my $pass = setting('database')->{pass};
my $portnum = undef;
if ($host =~ m/([^;]+);port=(\d+)/) {
if ($host and $host =~ m/([^;]+);port=(\d+)/) {
$host = $1;
$portnum = $2;
}