diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 123e87660..d253e0377 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -3926,7 +3926,7 @@ sub renergy_withiem { if ($directive =~ /cappingmin/) { $sessdata->{iem}->prep_get_mincap(); process_data_from_iem($sessdata); - } elsif ($directive =~ /cappingmax/) { + } elsif ($directive =~ /cappingmax$/) { $sessdata->{iem}->prep_get_maxcap(); process_data_from_iem($sessdata); }