Cast security_shadow_utils_fail_delay as int
This patch ensures that security_shadow_utils_fail_delay is an
integer before we perform math on it.
Change-Id: I2b586c9d96447c6747aea3be53c6f622cd494f75
(cherry picked from commit e683bce915
)
This commit is contained in:
parent
ebf333132e
commit
04a6e107db
|
@ -19,7 +19,7 @@
|
|||
lineinfile:
|
||||
dest: /etc/pam.d/login
|
||||
regexp: '^(auth[\s]+optional[\s]+pam_faildelay.so).*$'
|
||||
line: '\1 delay={{ security_shadow_utils_fail_delay * 10**6 }}'
|
||||
line: '\1 delay={{ (security_shadow_utils_fail_delay | int) * 10**6 }}'
|
||||
state: present
|
||||
backrefs: yes
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue