aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/templates/lava_scheduler_app
diff options
context:
space:
mode:
authorRĂ©mi Duraffort <remi.duraffort@linaro.org>2018-03-05 11:19:46 +0100
committerSenthil Kumaran Shanmugasundaram <senthil.kumaran@linaro.org>2018-03-06 03:45:44 +0000
commit4bb83a630561ecef0d735413adb58cfde322fbab (patch)
tree66b58b33ca8f3f020005c6821be8c381df6ffe6e /lava_scheduler_app/templates/lava_scheduler_app
parentb33a3165f471d4dcd2dc5a087748f67b388e73d3 (diff)
Fix 500 when device-type template does not exist
The crash was found on staging for juno-r2 device-type: [...] File "/usr/lib/python2.7/dist-packages/lava_scheduler_app/views.py", line 818, in device_type_detail 'health_freq': health_freq_str}) [...] File "/usr/lib/python2.7/dist-packages/django/template/defaultfilters.py", line 582, in join value = map(force_text, value) TypeError: argument 2 to map() must support iteration Change-Id: If0e16351db406c274acd087000fe407b968b202e
Diffstat (limited to 'lava_scheduler_app/templates/lava_scheduler_app')
-rw-r--r--lava_scheduler_app/templates/lava_scheduler_app/device_type.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/lava_scheduler_app/templates/lava_scheduler_app/device_type.html b/lava_scheduler_app/templates/lava_scheduler_app/device_type.html
index 2cb711418..26b4a2f57 100644
--- a/lava_scheduler_app/templates/lava_scheduler_app/device_type.html
+++ b/lava_scheduler_app/templates/lava_scheduler_app/device_type.html
@@ -66,9 +66,9 @@
<p>Not all methods may be available on all devices.</p>
<dl class="dl-horizontal">
<dt>Deployment</dt>
- <dd>{{ dt|deploy_methods:'deploy'|join:", " }}</dd>
+ <dd>{{ dt|deploy_methods:'deploy'|join:", "|default:"<i>...</i>" }}</dd>
<dt>Boot</dt>
- <dd>{{ dt|deploy_methods:'boot'|join:", " }}</dd>
+ <dd>{{ dt|deploy_methods:'boot'|join:", "|default:"<i>...</i>" }}</dd>
</dl>
<h5 class="modal-header">Default timeouts</h5>
<p>Classes named in the default timeouts can be part of the pipeline description which is available from a test job definition, depending on the deployment or boot methods used by that job. </p>