Skip to content

Commit

Permalink
Fix importing and unimporting from empty lists
Browse files Browse the repository at this point in the history
  • Loading branch information
kklimonda-cl committed Sep 6, 2024
1 parent 2970686 commit 815437a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/sdk/service.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (s *Service) importToLocations(ctx context.Context, loc Location, importLoc
}

bytes, _, err := s.client.Communicate(ctx, cmd, false, nil)
if err != nil {
if err != nil && !errors.IsObjectNotFound(err) {
return err
}

Expand Down Expand Up @@ -162,7 +162,7 @@ func (s *Service) unimportFromLocations(ctx context.Context, updates *xmlapi.Mul
}

bytes, _, err := s.client.Communicate(ctx, cmd, false, nil)
if err != nil {
if err != nil && !errors.IsObjectNotFound(err) {
return err
}

Expand Down

0 comments on commit 815437a

Please sign in to comment.