aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/atomichost.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/sos/plugins/atomichost.py b/sos/plugins/atomichost.py
index a339557e..9b53d56b 100644
--- a/sos/plugins/atomichost.py
+++ b/sos/plugins/atomichost.py
@@ -34,8 +34,9 @@ class AtomicHost(Plugin, RedHatPlugin):
self.add_cmd_output("atomic host status")
if self.get_option('info'):
- images = self.get_command_output("docker images -q")
- for image in set(
- images['output'].splitlines()):
- if image:
- self.add_cmd_output("atomic info {0}".format(image))
+ # images output may have trailing whitespace
+ images = self.get_command_output("docker images -q").strip()
+ for image in set(images['output'].splitlines()):
+ self.add_cmd_output("atomic info {0}".format(image))
+
+# vim: set et ts=4 sw=4 :