aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-03-30 12:01:32 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-03-30 12:05:57 +0300
commita0e410797af04537cf4656bdc7b3c1e6985bf065 (patch)
treeaee8cbb1b1355d5eef477223be60f87afe930e16
parentd5ac7a238517d88b565db75cf03e2050d810c9d0 (diff)
securetty: use validate_array for tty list
Change-Id: I1e79407ec6f360a2b205cec6cf8e812a11b799ea
-rw-r--r--manifests/profile/base/securetty.pp6
1 files changed, 4 insertions, 2 deletions
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,