diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 42b03716c..dea2067d5 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -918,7 +918,7 @@ sub defmk } # if object already exists - if (grep(/$obj/, @{$objTypeLists{$type}})) + if (grep(/^$obj$/, @{$objTypeLists{$type}})) { if ($::verbose) {