--- bin/import-ldap.pl 2008/06/16 16:48:16 174 +++ bin/import-ldap.pl 2008/06/16 16:49:30 175 @@ -43,16 +43,7 @@ } } -if ( $strix ) { - my $strix_sites = A3C::Model::StrixSiteCollection->new; - $strix_sites->unlimit; - my $o_nr = 1; - while ( my $site = $strix_sites->next ) { - Jifty->log->info( 'sync organization ', $o_nr++, '/', $strix_sites->count, ' ', $site->site ); - sync_org( $site->site ); - } - exit; -} +@models = 'hrEduOrg' if $strix; if ( @models ) { @@ -85,3 +76,14 @@ sync_org( $org_uid ); } } + +if ( $strix ) { + my $instances = A3C::Model::StrixInstanceCollection->new; + $instances->unlimit; + my $o_nr = 1; + while ( my $instance = $instances->next ) { + Jifty->log->info( 'sync organization ', $o_nr++, '/', $instances->count, ' ', $instance->instance ); + sync_org( $instance->instance ); + } +} +