diff --git a/xCAT-server/lib/perl/xCAT/xcatd.pm b/xCAT-server/lib/perl/xCAT/xcatd.pm index 20b574567..33f6412ca 100644 --- a/xCAT-server/lib/perl/xCAT/xcatd.pm +++ b/xCAT-server/lib/perl/xCAT/xcatd.pm @@ -9,6 +9,7 @@ use strict; use xCAT::Table; use xCAT::MsgUtils; use Data::Dumper; +use xCAT::NodeRange; #-------------------------------------------------------------------------------- =head1 xCAT::XCATD @@ -121,8 +122,7 @@ sub validate { if ($rule->{rule} =~ /allow/i or $rule->{rule} =~ /accept/i or $rule->{rule} =~ /trusted/i) { $matchall=1; } - use xCAT::NodeRange; - + if (defined $request->{noderange}->[0]) { my @tmpn= xCAT::NodeRange::noderange($request->{noderange}->[0]); $request->{node}=\@tmpn;