inspector: Don't bomb if no kernels detected.
authorRichard Jones <rjones@trick.home.annexia.org>
Thu, 1 Oct 2009 14:20:14 +0000 (15:20 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Thu, 1 Oct 2009 14:20:14 +0000 (15:20 +0100)
commit5021b2efea92c021c04812056149485ac4803e9c
tree303b21e5fb96a42fecd89376cc8987e9c1139f09
parentd525103c8621f6ff0293311a8e8f9ac0c3580805
inspector: Don't bomb if no kernels detected.

If $os->{kernels} wasn't defined, virt-inspector would exit with
an error, leaving partial XML output.

Change the code so it doesn't die in this case, instead just
leaves out the <kernels> section.
inspector/virt-inspector