Changeset 2286 for trunk


Ignore:
Timestamp:
10/02/19 09:56:41 (5 years ago)
Author:
nanardon
Message:

OCHelper now return the name of created object

Location:
trunk/LATMOS-Accounts/lib/LATMOS/Accounts
Files:
2 edited

Legend:

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

    r2087 r2286  
    129129        ($status, $info) = $self->step($info); 
    130130        if ($status eq 'CREATED') { 
    131             return 1; 
     131            return $info->{name}{content}; 
    132132        } elsif ($status eq 'ERROR') { 
    133133            return; 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli.pm

    r2284 r2286  
    264264                        } 
    265265 
    266                         if ($ochelper->Automate($info)) { 
    267                             push(@ids, $res->{name}); 
     266                        if (my $id = $ochelper->Automate($info)) { 
     267                            push(@ids, $id); 
    268268                        } else { 
    269269                            warn "Cannot create object line $linecount (not enough information ?)\n"; 
Note: See TracChangeset for help on using the changeset viewer.