mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 18:48:08 +00:00 
			
		
		
		
	Propagate context within UnwrapWithContext func (#15351)
This commit is contained in:
		 Anton Averchenkov
					Anton Averchenkov
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							115476dd7a
						
					
				
				
					commit
					6ecf86f797
				
			| @@ -323,7 +323,7 @@ func (c *Logical) UnwrapWithContext(ctx context.Context, wrappingToken string) ( | ||||
| 		c.c.SetToken(wrappingToken) | ||||
| 	} | ||||
|  | ||||
| 	secret, err = c.Read(wrappedResponseLocation) | ||||
| 	secret, err = c.ReadWithContext(ctx, wrappedResponseLocation) | ||||
| 	if err != nil { | ||||
| 		return nil, errwrap.Wrapf(fmt.Sprintf("error reading %q: {{err}}", wrappedResponseLocation), err) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user