Fix error handling for task deletion.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
		| @@ -156,7 +156,7 @@ func (s *shim) Delete(ctx context.Context) (*runtime.Exit, error) { | |||||||
| 	response, err := s.task.Delete(ctx, &task.DeleteRequest{ | 	response, err := s.task.Delete(ctx, &task.DeleteRequest{ | ||||||
| 		ID: s.ID(), | 		ID: s.ID(), | ||||||
| 	}) | 	}) | ||||||
| 	if err != nil && errdefs.IsNotFound(err) { | 	if err != nil && !errdefs.IsNotFound(err) { | ||||||
| 		return nil, errdefs.FromGRPC(err) | 		return nil, errdefs.FromGRPC(err) | ||||||
| 	} | 	} | ||||||
| 	if err := s.waitShutdown(ctx); err != nil { | 	if err := s.waitShutdown(ctx); err != nil { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lantao Liu
					Lantao Liu