Skip to content

Commit

Permalink
fix(googleauth): ensure newline is preserved in repl of file.replace
Browse files Browse the repository at this point in the history
  • Loading branch information
unilogicbv committed Jun 9, 2022
1 parent 8dce714 commit 1dd5f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/googleauth.sls
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ users_{{ users.googleauth_dir }}:
{%- if 'google_auth' in user %}
{%- for svc in user['google_auth'] %}
{%- if user.get('google_2fa', True) %}
{%- set repl = '{0} {1} {2} {3} {4}{5}/{6}_{7} {8}\n{9}'.format(
{%- set repl = '{0} {1} {2} {3} {4}{5}/{6}_{7} {8}\\n{9}'.format(
'auth',
'[success=done new_authtok_reqd=done default=die]',
'pam_google_authenticator.so',
Expand Down

0 comments on commit 1dd5f32

Please sign in to comment.