From f79ec9bdbdc4d10b8515fe0cb97109fb42ad4fde Mon Sep 17 00:00:00 2001 From: ligc Date: Wed, 18 Sep 2013 13:46:34 +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 fe5172ab0..db8657ec3 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -3159,10 +3159,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)