fix defect 3146884 odbc setup on Service Node not correct

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-01-04 17:17:30 +00:00
parent 2c3c0ebe19
commit b6049b5f14

View File

@ -1362,7 +1362,7 @@ sub setupODBC
exit(1);
}
my $entry = "\n[$instance]\nuid=$instance\npasswd=$passwd";
my $entry = "\n[$instance]\nuid=$instance\npwd=$passwd";
$cmd = "echo \"$entry\" >> $db2clifile";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)
@ -1378,7 +1378,7 @@ sub setupODBC
xCAT::MsgUtils->message("I", "$message");
}
} else { # file does not exist
my $entry = "[$instance]\nuid=$instance\npasswd=$passwd";
my $entry = "[$instance]\nuid=$instance\npwd=$passwd";
$cmd = "echo \"$entry\" > $db2clifile";
xCAT::Utils->runcmd($cmd, 0);
if ($::RUNCMD_RC != 0)