diff options
author | Richard Jones <rjones@redhat.com> | 2010-03-08 19:27:02 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-03-08 19:35:22 +0000 |
commit | 4851466ec5adbbc039222201f7c3b1bc3b97e84e (patch) | |
tree | 328168f9ae55116c53b37d3ff65f136b796781b0 /inspector/virt-inspector | |
parent | ed6fc794c8a2f64f8b987137b54551f4380177f3 (diff) | |
download | libguestfs-4851466ec5adbbc039222201f7c3b1bc3b97e84e.tar.gz libguestfs-4851466ec5adbbc039222201f7c3b1bc3b97e84e.tar.xz libguestfs-4851466ec5adbbc039222201f7c3b1bc3b97e84e.zip |
inspector: Add product_name field to output.
This is a free text string containing the "product name" of
the OS. It's mainly useful for Windows guests, and a forthcoming
patch will get this field from the Windows Registry.
Diffstat (limited to 'inspector/virt-inspector')
-rwxr-xr-x | inspector/virt-inspector | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inspector/virt-inspector b/inspector/virt-inspector index 707825ee..e5c39907 100755 --- a/inspector/virt-inspector +++ b/inspector/virt-inspector @@ -354,6 +354,7 @@ sub output_text_os print $os->{arch}, " " if exists $os->{arch}; print $os->{major_version} if exists $os->{major_version}; print ".", $os->{minor_version} if exists $os->{minor_version}; + print " (", $os->{product_name}, ")" if exists $os->{product_name}; print " "; print "on ", $os->{root_device}, ":\n"; @@ -447,6 +448,7 @@ sub output_xml_os foreach ( [ "name" => "os" ], [ "distro" => "distro" ], + [ "product_name" => "product_name" ], [ "arch" => "arch" ], [ "major_version" => "major_version" ], [ "minor_version" => "minor_version" ], |