[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH libosinfo 09/10] Add 'distro' field to osinfo-query command



From: "Daniel P. Berrange" <berrange redhat com>

Enable the osinfo-query command to display the contents of
the 'distro' field
---
 tools/osinfo-query.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/osinfo-query.c b/tools/osinfo-query.c
index cfb807e..8194eb4 100644
--- a/tools/osinfo-query.c
+++ b/tools/osinfo-query.c
@@ -58,7 +58,9 @@ static struct OsinfoLabel os_labels[] = {
     { OSINFO_PRODUCT_PROP_VERSION,
       "Version", TRUE, 8 },
     { OSINFO_OS_PROP_FAMILY,
-      "Family", TRUE, 10 },
+      "Family", TRUE, 12 },
+    { OSINFO_OS_PROP_DISTRO,
+      "Distro", TRUE, 12 },
     { OSINFO_PRODUCT_PROP_VENDOR,
       "Vendor", TRUE, 25 },
     { OSINFO_PRODUCT_PROP_RELEASE_DATE,
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]