Elukey has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/284419

Change subject: Sort the hosts with diffs/errors in the Jinja templates.
......................................................................

Sort the hosts with diffs/errors in the Jinja templates.

Feature request to sort the hostnames in the Jinja templates to have
them nicely grouped in the resulting HTML.

Change-Id: I03e0b493e29ceb9889a9c79bc1d86b6eadb28b57
---
M puppet_compiler/templates/index.jinja2
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/software/puppet-compiler 
refs/changes/19/284419/1

diff --git a/puppet_compiler/templates/index.jinja2 
b/puppet_compiler/templates/index.jinja2
index 18469b4..ee8bfc1 100644
--- a/puppet_compiler/templates/index.jinja2
+++ b/puppet_compiler/templates/index.jinja2
@@ -4,25 +4,25 @@
   <div id="list">
     <h2>Hosts that have no differences (or compile correctly only with the 
change)</h2>
     <ul>
-      {% for host in state.noop %}
+      {% for host in state.noop|sort %}
         <li> <a href="{{ host }}/">{{ host }}</a>
       {% endfor %}
     </ul>
     <h2>Hosts that have changes</h2>
     <ul>
-      {% for host in state.diff %}
+      {% for host in state.diff|sort %}
         <li> <a href="{{ host }}/">{{ host }}</a>
       {% endfor %}
     </ul>
     <h2>Hosts that fail to compile when the change is applied</h2>
     <ul>
-      {% for host in state.err %}
+      {% for host in state.err|sort %}
         <li> <a href="{{ host }}/">{{ host }}</a>
       {% endfor %}
     </ul>
     <h2>Hosts that have failed to compile completely</h2>
     <ul>
-      {% for host in state.fail %}
+      {% for host in state.fail|sort %}
         <li> <a href="{{ host }}/">{{ host }}</a>
       {% endfor %}
     </ul>

-- 
To view, visit https://gerrit.wikimedia.org/r/284419
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I03e0b493e29ceb9889a9c79bc1d86b6eadb28b57
Gerrit-PatchSet: 1
Gerrit-Project: operations/software/puppet-compiler
Gerrit-Branch: master
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to