The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd-pkg-snap/pull/67

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
lxc.buginfo has a few "lxc x list" commands listed without any specified
format.  This defaults to the "table" format.  However, the default "table"
format does not provide some information that another format, like the "yaml"
format, provides.  Some of the additional information could be useful for
engineers debugging a lxc setup.  This PR appends "--format=yaml" to the
applicable list commands.

Signed-off-by: Adam Bell <adam.b...@canonical.com>
From 332e2944f1d387b153a73db023f247cc13f1e5e4 Mon Sep 17 00:00:00 2001
From: Adam R Bell <a_0...@protonmail.ch>
Date: Mon, 14 Sep 2020 21:49:56 -0600
Subject: [PATCH] buginfo: Use "--format=yaml" in list commands

lxc.buginfo has a few "lxc x list" commands listed without any specified
format.  This defaults to the "table" format.  However, the default "table"
format does not provide some information that another format, like the "yaml"
format, provides.  Some of the additional information could be useful for
engineers debugging a lxc setup.  This PR appends "--format=yaml" to the
applicable list commands.

Signed-off-by: Adam Bell <adam.b...@canonical.com>
---
 snapcraft/commands/buginfo | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/snapcraft/commands/buginfo b/snapcraft/commands/buginfo
index 95bf05c..d252252 100755
--- a/snapcraft/commands/buginfo
+++ b/snapcraft/commands/buginfo
@@ -45,37 +45,37 @@ if lxc info >/dev/null 2>&1; then
 
     echo "## Instances"
     echo '```'
-    lxc list
+    lxc list --format=yaml
     echo '```'
     echo ""
 
     echo "## Images"
     echo '```'
-    lxc image list
+    lxc image list --format=yaml
     echo '```'
     echo ""
 
     echo "## Storage pools"
     echo '```'
-    lxc storage list
+    lxc storage list --format=yaml
     echo '```'
     echo ""
 
     echo "## Networks"
     echo '```'
-    lxc network list
+    lxc network list --format=yaml
     echo '```'
     echo ""
 
     echo "## Projects"
     echo '```'
-    lxc project list
+    lxc project list --format=yaml
     echo '```'
     echo ""
 
     echo "## Profiles"
     echo '```'
-    lxc profile list
+    lxc profile list --format=yaml
     echo '```'
     echo ""
 
@@ -88,7 +88,7 @@ if lxc info >/dev/null 2>&1; then
     if lxc cluster list >/dev/null 2>&1; then
         echo "## Cluster"
         echo '```'
-        lxc cluster list
+        lxc cluster list --format=yaml
         echo '```'
         echo ""
     fi
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to