From 4851466ec5adbbc039222201f7c3b1bc3b97e84e Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 8 Mar 2010 19:27:02 +0000 Subject: 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. --- inspector/virt-inspector | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inspector/virt-inspector') 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" ], -- cgit