diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index ad1ff6bd4..23374b101 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -804,7 +804,7 @@ sub update_tables_with_mgt_image #get the profile name out of the file, TODO: this does not work if the profile name contains the '.' $tmpf =~ /^([^\.]*)\..*$/; $tmpf = $1; - if ( $tmpf = "compute" ) { + if ( $tmpf eq "compute" ) { $profiles{$tmpf}=1; } }