From 343e1a80409ccbcd78d6e03fffd2c268b0179762 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 22 Apr 2009 17:29:11 +0000 Subject: [PATCH] Fix grep to avoid bogus error message git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3243 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {