#NEWLINE# def __init__( self , account_name = None , region_name = None , storage_account_name = None , storage_container_name = None , filename = None , platform = PLATFORM ) : #NEWLINE# #INDENT# from .. logger import log #NEWLINE# self . storage_container_name = storage_container_name #NEWLINE# self . storage_account_name = storage_account_name #NEWLINE# self . config_file = self . __lookup_config_file ( platform , account_name , filename ) #NEWLINE# self . config = ConfigParser ( ) #NEWLINE# try : #NEWLINE# #INDENT# log . debug ( 'Using configuration from %s' , self . config_file ) #NEWLINE# self . config . read ( self . config_file ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise AzureConfigParseError ( ( 'Could not parse config file: "%s"\n%s' % ( self . config_file , e . message ) ) ) #NEWLINE# #UNINDENT# if ( not self . config . defaults ( ) ) : #NEWLINE# #INDENT# raise AzureAccountDefaultSectionNotFound ( ( 'Empty or undefined default section in configuration file %s' % self . config_file ) ) #NEWLINE# #UNINDENT# self . account_name = self . __import_default_account ( ) #NEWLINE# self . selected_region_name = region_name #NEWLINE# self . region_name = None