mirror of
				https://github.com/github/octodns.git
				synced 2024-05-11 05:55:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			688 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			688 B
		
	
	
	
		
			Python
		
	
	
	
	
	
#
 | 
						|
#
 | 
						|
#
 | 
						|
 | 
						|
from logging import getLogger
 | 
						|
 | 
						|
logger = getLogger('Azure')
 | 
						|
try:
 | 
						|
    logger.warning(
 | 
						|
        'octodns_azure shimmed. Update your provider class to '
 | 
						|
        'octodns_azure.AzureProvider. '
 | 
						|
        'Shim will be removed in 1.0'
 | 
						|
    )
 | 
						|
    from octodns_azure import AzureProvider
 | 
						|
 | 
						|
    AzureProvider  # pragma: no cover
 | 
						|
except ModuleNotFoundError:
 | 
						|
    logger.exception(
 | 
						|
        'AzureProvider has been moved into a separate module, '
 | 
						|
        'octodns_azure is now required. Provider class should '
 | 
						|
        'be updated to octodns_azure.AzureProvider. See '
 | 
						|
        'https://github.com/octodns/octodns#updating-'
 | 
						|
        'to-use-extracted-providers for more information.'
 | 
						|
    )
 | 
						|
    raise
 |