-Be extra paranoid about data from table call

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7075 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-08-12 18:55:38 +00:00
parent bd8a25024c
commit b1f691433f

View File

@ -773,8 +773,8 @@ sub makedom {
my $cdloc = shift;
my $dom;
my $xml;
if ($confdata->{kvmnodedata}->{$node}) {
$xml = $confdata->{kvmnodedata}->{$node}->[0];
if ($confdata->{kvmnodedata}->{$node} and $confdata->{kvmnodedata}->{$node}->[0] and $confdata->{kvmnodedata}->{$node}->[0]->{xml}) {
$xml = $confdata->{kvmnodedata}->{$node}->[0]->{xml};
} else {
$xml = build_xmldesc($node,$cdloc);
}