From bfe3cdad053a9e981f5094f1de84ad28cb820a14 Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 18 Sep 2013 13:46:00 +0800 Subject: [PATCH] fix for bug 3748: lsdef --osimage need to list all osimage attributes --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) mode change 100644 => 100755 xCAT-server/lib/xcat/plugins/DBobjectdefs.pm diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm old mode 100644 new mode 100755 index dce1a8a24..c38bf62cf --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -3156,10 +3156,12 @@ sub defls foreach my $imgattr (keys %imgentry) { # Only store the attributes that are not in general node attributes - if(!defined($myhash{$obj}{$imgattr}) && defined($imgentry{$imgattr})) - { + # This is not the right thing to do, list all the osimage attributes instead, + # like the postscripts and postbootscripts attributes, + #if(!defined($myhash{$obj}{$imgattr}) && defined($imgentry{$imgattr})) + #{ $nodeosimagehash{$obj}{$imgattr} = $imgentry{$imgattr}; - } + #} } } if (scalar(keys %{$nodeosimagehash{$obj}}) == 0)