Elukey has submitted this change and it was merged.

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.
Version bump to 0.14

Change-Id: I03e0b493e29ceb9889a9c79bc1d86b6eadb28b57
---
M puppet_compiler/templates/index.jinja2
M setup.py
2 files changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Elukey: Looks good to me, approved
  jenkins-bot: Verified



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>
diff --git a/setup.py b/setup.py
index e534855..958521c 100755
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@
 
 setup(
     name='puppet_compiler',
-    version='0.1.3',
+    version='0.1.4',
     description='Tools to compile puppet catalogs as a service',
     author='Joe',
     author_email='glavage...@wikimedia.org',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I03e0b493e29ceb9889a9c79bc1d86b6eadb28b57
Gerrit-PatchSet: 2
Gerrit-Project: operations/software/puppet-compiler
Gerrit-Branch: master
Gerrit-Owner: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Elukey <ltosc...@wikimedia.org>
Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: Volans <rcocci...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to