fix for bug 3748: lsdef --osimage need to list all osimage attributes

This commit is contained in:
ligc
2013-09-18 13:46:34 +08:00
parent 44f26b478d
commit f79ec9bdbd

8
xCAT-server/lib/xcat/plugins/DBobjectdefs.pm Normal file → Executable file
View File

@ -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)