diff --git a/manifests/script.pp b/manifests/script.pp index 1f81093..d940ea1 100644 --- a/manifests/script.pp +++ b/manifests/script.pp @@ -56,7 +56,7 @@ class sunetdrive::script ( } $site_name = $config['site_name'] $user_bucket_name = $config['user_bucket_name'] - if $config['user_scans'].is_a?(Array) { + if $config['user_scans'] { $config['user_scans'].each |$job| { sunet::scriptherder::cronjob { $job['name']: cmd => "ssh -t -l script ${job['server']} /usr/bin/sudo /usr/local/bin/occ ${job['container']} files:scan ${job['user']}",