For db2, must not substitute the hostname, there is no hostname in the cfgloc

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7717 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-09-29 13:08:45 +00:00
parent 44b0916923
commit f4a1daf346

View File

@ -347,10 +347,16 @@ sub getcreds
if (defined ($response) ) {
# need to change entry to use the name of the server as
# know by this node
my ($begin, $tmp) = split(';', $response);
my ($tmp2, $end, $end2) = split('\|', $tmp);
my ($tmp3, $oldserv) = split('=', $tmp2);
my $newstr = "$begin;$tmp3=$::servnode|$end|$end2";
# except for db2 which has a different format, no host
my $newstr;
if ($response =~ /^DB2:/){
$newstr = $response;
} else {
my ($begin, $tmp) = split(';', $response);
my ($tmp2, $end, $end2) = split('\|', $tmp);
my ($tmp3, $oldserv) = split('=', $tmp2);
$newstr = "$begin;$tmp3=$::servnode|$end|$end2";
}
my $fd;
my $filename = "/etc/xcat/cfgloc";
&runcmd("mkdir -p /etc/xcat");