securetty: use validate_array for tty list

Change-Id: I1e79407ec6f360a2b205cec6cf8e812a11b799ea
This commit is contained in:
Juan Antonio Osorio Robles 2017-03-30 12:01:32 +03:00
parent d5ac7a2385
commit a0e410797a
1 changed files with 4 additions and 2 deletions

View File

@ -30,10 +30,12 @@
#
class tripleo::profile::base::securetty (
$step = hiera('step'),
$tty_list = hiera('tty_list)', []),
$tty_list = hiera('tty_list', []),
) {
validate_array($tty_list)
if $step >=1 {
$ttys = join( $tty_list, "\n")
$ttys = join($tty_list, "\n")
file { '/etc/securetty':
ensure => file,