fix myxCATname

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2011-01-12 12:26:46 +00:00
parent 4110c9290c
commit ac88177e75
2 changed files with 4 additions and 1 deletions

View File

@ -151,6 +151,10 @@ sub myxCATname
}
}
if (!$name) {
$name = hostname();
}
my $shorthost;
($shorthost = $name) =~ s/\..*$//;
chomp $shorthost;

View File

@ -1037,7 +1037,6 @@ sub runcmd
# get this systems name as known by xCAT management node
my $Sname = xCAT::InstUtils->myxCATname();
chomp $Sname;
if ($::VERBOSE)
{