From 487597c01d2983d0f3fc4ae12444e2907ed0b156 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 19 Mar 2019 11:51:47 +0000 Subject: [openstack_instack] pass lists to add_cmd_output() Signed-off-by: Bryn M. Reeves --- sos/plugins/openstack_instack.py | 7 ++++--- 1 file 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] -- cgit