Fix endfor
diff --git a/linux/system/motd.sls b/linux/system/motd.sls
index e376854..9f33982 100644
--- a/linux/system/motd.sls
+++ b/linux/system/motd.sls
@@ -39,6 +39,6 @@
 
 {%- endfor %}
 
-{%- endfor %}
+{%- endif %}
 
 {%- endif %}