aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2019-03-19 11:51:47 +0000
committerBryn M. Reeves <bmr@redhat.com>2019-03-19 11:51:47 +0000
commit487597c01d2983d0f3fc4ae12444e2907ed0b156 (patch)
tree4e7cb1bc0262949e7506fad8fdd7276b27c171dd
parent9270f871016fa6c6c8450949b96c842dfcfbbeb2 (diff)
downloadsos-487597c01d2983d0f3fc4ae12444e2907ed0b156.tar.gz
[openstack_instack] pass lists to add_cmd_output()
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/openstack_instack.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sos/plugins/openstack_instack.py b/sos/plugins/openstack_instack.py
index 4fa21699..564cc4cc 100644
--- a/sos/plugins/openstack_instack.py
+++ b/sos/plugins/openstack_instack.py
@@ -69,9 +69,10 @@ class OpenStackInstack(Plugin):
stack_ids = re.findall(r'(\s(\w+-\w+)+\s)', stacks)
# get status of overcloud stack and resources
for sid in stack_ids:
- self.add_cmd_output("openstack stack show %s" % sid[0])
- self.add_cmd_output(
- "openstack stack resource list -n 10 %s" % sid[0])
+ self.add_cmd_output([
+ "openstack stack show %s" % sid[0],
+ "openstack stack resource list -n 10 %s" % sid[0]
+ ])
# get details on failed deployments
cmd = "openstack stack resource list -f value -n 5 %s" % sid[0]