aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2019-03-19 11:52:45 +0000
committerBryn M. Reeves <bmr@redhat.com>2019-03-19 11:52:45 +0000
commit31e98377f5191e4cbdf95be7803f4d33e77eaa7a (patch)
tree41eb5b383a645ad8a68243d4cc6ca189f5ffc26e
parent487597c01d2983d0f3fc4ae12444e2907ed0b156 (diff)
downloadsos-31e98377f5191e4cbdf95be7803f4d33e77eaa7a.tar.gz
[openstack_instack] re-format innermost loop
Re-format the indentation and structure of the innermost loop in the failed deployments capture. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-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 -")