Skip to content

Commit

Permalink
Merge pull request #36 from hardening-io/if_constructs
Browse files Browse the repository at this point in the history
Change oneliner if-statements to be more readable
  • Loading branch information
chris-rock committed Aug 7, 2015
2 parents 40c2d36 + 9befb22 commit 914edb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ansible-os-hardening/templates/login.defs.j2
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ LOGIN_TIMEOUT {{os_auth_timeout}}
CHFN_RESTRICT {{ os_chfn_restrict }}
{% endif %}
# Should login be allowed if we can't cd to the home directory?
DEFAULT_HOME {% if os_auth_allow_homeless -%}yes{% else -%}no{% endif %}
DEFAULT_HOME {{ 'yes' if os_auth_allow_homeless else 'no' }}

# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
Expand Down

0 comments on commit 914edb2

Please sign in to comment.