Update.
Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/f9d5b2c2 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/f9d5b2c2 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/f9d5b2c2 Branch: refs/heads/master Commit: f9d5b2c24433fbdd380a120ef99f78e3b0301196 Parents: 9467a47 Author: Dave George <[email protected]> Authored: Thu Apr 5 15:40:14 2018 +0000 Committer: Dave George <[email protected]> Committed: Thu Apr 5 15:40:14 2018 +0000 ---------------------------------------------------------------------- core/sqf/src/seabed/test/godb.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/f9d5b2c2/core/sqf/src/seabed/test/godb.pl ---------------------------------------------------------------------- diff --git a/core/sqf/src/seabed/test/godb.pl b/core/sqf/src/seabed/test/godb.pl index 2ba6f3d..179c2ba 100755 --- a/core/sqf/src/seabed/test/godb.pl +++ b/core/sqf/src/seabed/test/godb.pl @@ -84,9 +84,14 @@ sqconfigdb::addDbPersistData( "WDG_PERSIST_ZONES", "%zid" ); my $en = $ENV{'SQ_NAMESERVER_ENABLED'}; if ($en == '1') { - if ($ninx > 0) { - sqconfigdb::addDbNameServer( $node_names[0] ); - } else { + open(NSCONF, "<ns.conf"); + my $nscnt = 0; + while (<NSCONF>) { + $_ =~ s/\s+$//; + sqconfigdb::addDbNameServer( $_ ); + $nscnt++; + } + if ($nscnt == 0) { sqconfigdb::addDbNameServer( 'n0' ); } }
