mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-04 04:29:13 +00:00 
			
		
		
		
	Fix region name (#9811)
This commit is contained in:
		
							parent
							
								
									3dcccb1f14
								
							
						
					
					
						commit
						c6cf9ae764
					
				@ -213,10 +213,7 @@ class ElasticsearchSink(Sink[Entity]):
 | 
			
		||||
        if self.config.use_AWS_credentials:
 | 
			
		||||
            credentials = boto3.Session().get_credentials()
 | 
			
		||||
            # We are initializing the Session() here and letting it pick up host creds.
 | 
			
		||||
            # Not marked as a callable function, but a class.
 | 
			
		||||
            region_from_boto3 = (
 | 
			
		||||
                boto3.Session().region_name()  # pylint: disable=not-callable
 | 
			
		||||
            )
 | 
			
		||||
            region_from_boto3 = boto3.Session().region_name
 | 
			
		||||
            http_auth = AWS4Auth(
 | 
			
		||||
                region=self.config.region_name
 | 
			
		||||
                if self.config.region_name
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user