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:
Major Hayden 2017-09-11 16:14:25 -06:00
parent d0ec2e8dd0
commit 6e82b647d4
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,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: