Displaying 1 result from an estimated 1 matches for "86b1795".
2009 Oct 01
1
[PATCH] inspector: Don't bomb if no kernels detected.
...hange the code so it doesn't die in this case, instead just
leaves out the <kernels> section.
---
inspector/virt-inspector | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/inspector/virt-inspector b/inspector/virt-inspector
index 86b1795..dc8847f 100755
--- a/inspector/virt-inspector
+++ b/inspector/virt-inspector
@@ -550,23 +550,25 @@ sub output_xml_os
$xml->endTag("boot");
}
- $xml->startTag("kernels");
- my @kernels = @{$os->{kernels}};
- foreach (@kernels) {
- $xml-&g...