aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2017-11-15 17:43:45 +0100
committerPavel Moravec <pmoravec@redhat.com>2017-11-15 17:47:58 +0100
commit68e149809d5b487d0c5800b5a1a005aaad83c7be (patch)
treee3a061fe4cba8108468d7fe76fe5718254786afb
parent58f3f9069223516d05474d9f9027ac396872d84b (diff)
downloadsos-68e149809d5b487d0c5800b5a1a005aaad83c7be.tar.gz
[docker] fix copy&paste error in a for cycle
"containers" is an unknown variable, "insp" is the correct one Resolves: #1148 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/docker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py
index fea4b96c..4f6c9882 100644
--- a/sos/plugins/docker.py
+++ b/sos/plugins/docker.py
@@ -97,7 +97,7 @@ class Docker(Plugin):
)
)
if self.get_option('logs'):
- for container in containers:
+ for container in insp:
self.add_cmd_output(
"{0} logs {1}".format(
self.docker_cmd,