From a0e410797af04537cf4656bdc7b3c1e6985bf065 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Thu, 30 Mar 2017 12:01:32 +0300 Subject: securetty: use validate_array for tty list Change-Id: I1e79407ec6f360a2b205cec6cf8e812a11b799ea --- manifests/profile/base/securetty.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'manifests/profile/base') diff --git a/manifests/profile/base/securetty.pp b/manifests/profile/base/securetty.pp index a04c559..07f29f8 100644 --- a/manifests/profile/base/securetty.pp +++ b/manifests/profile/base/securetty.pp @@ -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, -- cgit 1.2.3-korg