Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid trailing comma in hosts.allow, fails nessus scan #29

Closed
erpadmin opened this issue May 19, 2017 · 2 comments
Closed

avoid trailing comma in hosts.allow, fails nessus scan #29

erpadmin opened this issue May 19, 2017 · 2 comments
Assignees
Labels

Comments

@erpadmin
Copy link
Contributor

erpadmin commented May 19, 2017

not savvy with github yet :)

diff --git a/templates/hosts.allow.j2 b/templates/hosts.allow.j2
index ca37253..9055481 100644
--- a/templates/hosts.allow.j2
+++ b/templates/hosts.allow.j2
@@ -8,4 +8,4 @@
 #              for information on rule syntax.
 #              See 'man tcpd' for information on tcp_wrappers
 #
-ALL: {% for iprange in rhel7cis_host_allow -%}{{ iprange }}, {% endfor %}
+ALL: {% for iprange in rhel7cis_host_allow -%}{{ iprange }}{% if not loop.last %}, {% endif %}{% endfor %}
@shepdelacreme
Copy link
Contributor

@erpadmin Thanks! I will mark this so we can get it merged in soon.

@shepdelacreme shepdelacreme self-assigned this May 23, 2017
@erpadmin
Copy link
Contributor Author

will submit pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants