diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-30 18:23:48 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-30 18:23:48 +0000 |
commit | c2d3bac2d67284c39d1d9e3995d2c76d945f794d (patch) | |
tree | 0f0ea8b2c33ab2ad80f830795f45af199ddbc2a4 /manifests/profile/base/securetty.pp | |
parent | fce0cb21a35446461808ea7167a76a8c3b539088 (diff) | |
parent | a0e410797af04537cf4656bdc7b3c1e6985bf065 (diff) |
Merge "securetty: use validate_array for tty list"
Diffstat (limited to 'manifests/profile/base/securetty.pp')
-rw-r--r-- | manifests/profile/base/securetty.pp | 6 |
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, |