From 57640180bd16f8801ee652f0dc671e2c7b1af8b4 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Thu, 19 Nov 2015 11:55:21 +0000 Subject: [PATCH] [#255] undefined host error in netdisco-do psql --- Netdisco/Changes | 6 ++++++ Netdisco/bin/netdisco-do | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Netdisco/Changes b/Netdisco/Changes index dd592779..85db21c8 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -1,3 +1,9 @@ +2.033005 + + [BUG FIXES] + + * [#255] undefined host error in netdisco-do psql + 2.033004 - 2015-11-16 [BUG FIXES] diff --git a/Netdisco/bin/netdisco-do b/Netdisco/bin/netdisco-do index 8b17a7fc..13de07fd 100755 --- a/Netdisco/bin/netdisco-do +++ b/Netdisco/bin/netdisco-do @@ -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; }