From: janw Date: Wed, 17 Feb 2010 16:14:15 +0000 (+0000) Subject: Allow periodic tag 'none'. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8edb38dfd76dbc69c09a4d248c7426de3a1e1f0;p=gosa.git Allow periodic tag 'none'. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15636 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/GosaPackages.pm b/gosa-si/modules/GosaPackages.pm index 64b014917..835eaa520 100644 --- a/gosa-si/modules/GosaPackages.pm +++ b/gosa-si/modules/GosaPackages.pm @@ -288,7 +288,7 @@ sub process_job_msg { if (exists $msg_hash->{periodic}) { $periodic = $msg_hash->{periodic}[0]; - if (not $periodic =~ /[0-9]+_(hours|minutes|days|weeks|months)/) # Periodic tag is not valid + if ($periodic ne 'none' and not $periodic =~ /[0-9]+_(hours|minutes|days|weeks|months)/) # Periodic tag is not valid { &main::daemon_log("$session_id ERROR: Message contains invalid periodic-tag '$periodic'.". " Please use the following pattern for the tag: 'INTEGER_[minutes|hours|days|weeks|months]'".