support NETDISCO_DBNAME in "netdisco-do psql"
This commit is contained in:
@@ -178,7 +178,7 @@ unless ($action) {
|
||||
my ($self, $job) = @_;
|
||||
my ($device, $port, $extra) = map {$job->$_} qw/device port extra/;
|
||||
|
||||
my $name = (setting('database')->{name} || 'netdisco');
|
||||
my $name = ($ENV{NETDISCO_DBNAME} || setting('database')->{name} || 'netdisco');
|
||||
my $host = setting('database')->{host};
|
||||
my $user = setting('database')->{user};
|
||||
my $pass = setting('database')->{pass};
|
||||
|
||||
Reference in New Issue
Block a user