summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,