fix the issue that hostname command cannot get short hort name
This commit is contained in:
parent
9c0fa6a8bb
commit
b7a04d3c94
@ -71,6 +71,9 @@ my ($rc, $output) = runsyscmd ($cmd);
|
||||
if ($rc) {
|
||||
$cmd = "wget -N --waitretry=10 --random-wait -T 60 http://$master/$cfgpath/miccfg.$nodename -P $tmppath";
|
||||
runsyscmd ($cmd, "Error: failed to download mic configuration file from $master\n", 3);
|
||||
} else {
|
||||
# Using $nodename_short was correct, so use that from now on
|
||||
$nodename = $nodename_short;
|
||||
}
|
||||
|
||||
unless (-r "$tmppath/miccfg.$nodename") {
|
||||
|
Loading…
Reference in New Issue
Block a user