From 11a809fa7fb0c8e3409a95bc8a62faf5c9a1d800 Mon Sep 17 00:00:00 2001 From: ligc Date: Fri, 7 Aug 2009 04:34:10 +0000 Subject: [PATCH] fix for bug 2833494 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3965 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 7b9aa7fda..b790e04be 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -2268,12 +2268,14 @@ sub defls # need a special case for the node postscripts attribute, # The 'xcatdefaults' postscript should be added to the postscript attribute my $getnodes = 0; - foreach my $objtype (@::clobjtypes) - { - if ($objtype eq 'node') + if (!$::opt_z) { #if -z flag is specified, do not add the xcatdefaults + foreach my $objtype (@::clobjtypes) { - $getnodes = 1; - last; + if ($objtype eq 'node') + { + $getnodes = 1; + last; + } } } if ($getnodes)