diff --git a/perl-xCAT/xCAT/ProfiledNodeUtils.pm b/perl-xCAT/xCAT/ProfiledNodeUtils.pm index 766f7a63e..743101e38 100644 --- a/perl-xCAT/xCAT/ProfiledNodeUtils.pm +++ b/perl-xCAT/xCAT/ProfiledNodeUtils.pm @@ -1434,7 +1434,7 @@ sub cal_netboot{ return 0; } - my $condition = shift $condition_array_ref; + my $condition = shift @$condition_array_ref; if( (exists($netboot_dict_ref->{$condition})) || (exists($netboot_dict_ref->{'*'})) ) { if(!exists($netboot_dict_ref->{$condition}))