2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #3618 from zet809/fix_issue_3617

fix issue 3617: Output of command nodeset stat is with MN's long hostname
This commit is contained in:
chenglch 2017-08-07 14:59:11 +08:00 committed by GitHub
commit c0b41a2755

View File

@ -941,7 +941,9 @@ unless ($foreground) {
}
# Cache the hostname, restart xcatd if hostname is changed after xcatd running
my $MYXCATSERVER = Sys::Hostname::hostname;
my $myhostname = Sys::Hostname::hostname;
my @mynamearray = split(/\./, $myhostname);
my $MYXCATSERVER = $mynamearray[0];
$dbmaster = xCAT::Table::init_dbworker;
if ($enable_perf) {