aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/openstack_instack.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/sos/plugins/openstack_instack.py b/sos/plugins/openstack_instack.py
index 564cc4cc..f2998621 100644
--- a/sos/plugins/openstack_instack.py
+++ b/sos/plugins/openstack_instack.py
@@ -80,16 +80,16 @@ class OpenStackInstack(Plugin):
for deployment in deployments.splitlines():
if 'FAILED' in deployment:
check = [
- "OS::Heat::StructuredDeployment",
- "OS::Heat::SoftwareDeployment"]
- if any(x in deployment for x in check):
- deploy = deployment.split()[1]
- cmd = "openstack software deployment " \
- "show --long %s" % (deployment)
- fname = "failed-deployment-%s.log" % deploy
- self.add_cmd_output(
- cmd,
- suggest_filename=fname)
+ "OS::Heat::StructuredDeployment",
+ "OS::Heat::SoftwareDeployment"
+ ]
+ if not any(x in deployment for x in check):
+ continue
+ deploy = deployment.split()[1]
+ cmd = ("openstack software deployment "
+ "show --long %s" % (deployment))
+ fname = "failed-deployment-%s.log" % deploy
+ self.add_cmd_output(cmd, suggest_filename=fname)
self.add_cmd_output("openstack object save "
"tripleo-ui-logs tripleo-ui.logs --file -")