Syntax error

This commit is contained in:
Micke Nordin 2024-07-01 16:45:49 +02:00
parent 9285c155db
commit 08be347419

View file

@ -56,7 +56,7 @@ class sunetdrive::script (
} }
$site_name = $config['site_name'] $site_name = $config['site_name']
$user_bucket_name = $config['user_bucket_name'] $user_bucket_name = $config['user_bucket_name']
if $config['user_scans'].is_a?(Array) { if $config['user_scans'] {
$config['user_scans'].each |$job| { $config['user_scans'].each |$job| {
sunet::scriptherder::cronjob { $job['name']: 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']}", cmd => "ssh -t -l script ${job['server']} /usr/bin/sudo /usr/local/bin/occ ${job['container']} files:scan ${job['user']}",