From d8edb38dfd76dbc69c09a4d248c7426de3a1e1f0 Mon Sep 17 00:00:00 2001 From: janw Date: Wed, 17 Feb 2010 16:14:15 +0000 Subject: [PATCH] Allow periodic tag 'none'. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15636 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/GosaPackages.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]'". -- 2.30.2