From 74df90b0972dcdd50fe2a482af192c4546061811 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 9 Jul 2009 18:26:56 +0000 Subject: [PATCH] -Fix nodestat for FQDN nodenames git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3743 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodestat.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index 6839ba228..1da35e23a 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -206,8 +206,13 @@ sub process_request_nmap { $installquerypossible=0; #reset possibility indicator %rsp=(); unless ($deadnodes{$1}) { + my $shortname; foreach (keys %deadnodes) { - if ($currnode =~ /^$_\./) { + if (/\./) { + $shortname = $_; + $shortname =~ s/\..*//; + } + if ($currnode =~ /^$_\./ or ($shortname and $shortname eq $currnode)) { $currnode = $_; last; }