Changeset 2017


Ignore:
Timestamp:
05/04/17 10:51:18 (7 years ago)
Author:
nanardon
Message:

Allow to disable task module from config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/SyncManager.pm

    r1824 r2017  
    134134 
    135135    foreach my $module ($self->list_modules) { 
    136         $modules{$module} = 1; 
     136 
     137        $self->ini->val($module, 'disable') and do { 
     138            la_log(LA_DEBUG, "Module $module is disable, not running it"); 
     139            next; 
     140        }; 
     141 
     142        $modules{$module} = 1; # default 
    137143        my $modtype = $self->ini->val($module, 'type', $module); 
    138144        my $task = LATMOS::Accounts::Task->new( 
Note: See TracChangeset for help on using the changeset viewer.