securetty: use validate_array for tty list
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Thu, 30 Mar 2017 09:01:32 +0000 (12:01 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Thu, 30 Mar 2017 09:05:57 +0000 (12:05 +0300)
Change-Id: I1e79407ec6f360a2b205cec6cf8e812a11b799ea

manifests/profile/base/securetty.pp

index a04c559..07f29f8 100644 (file)
 #
 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,