Code

Allow periodic tag 'none'.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Feb 2010 16:14:15 +0000 (16:14 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Feb 2010 16:14:15 +0000 (16:14 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15636 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/GosaPackages.pm

index 64b014917eb432ef4b68ebbca2eeb3fba5906ca4..835eaa520108a5015b9238290436f1cf3b3df8e4 100644 (file)
@@ -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]'".