diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 0df0280b6..582a95b02 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -899,7 +899,7 @@ sub subvars_for_mypostscript { my $osimgname = $provmethod; - if($osimgname =~ /install|netboot|statelite/){ + if($osimgname =~ /^(install|netboot|statelite)$/){ $osimgname = "$os-$arch-$provmethod-$profile"; }