#NEWLINE# def migrate_and_get_server_config( base_folder , storage_folder = None ) : #NEWLINE# #INDENT# server_config = ConanServerConfigParser ( base_folder , storage_folder = storage_folder ) #NEWLINE# if ( server_config . store_adapter == 'disk' ) : #NEWLINE# #INDENT# storage_path = server_config . disk_storage_path #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# storage_path = None #NEWLINE# #UNINDENT# migrator = ServerMigrator ( server_config . conan_folder , storage_path , Version ( SERVER_VERSION ) , logger ) #NEWLINE# migrator . migrate ( ) #NEWLINE# server_config = ConanServerConfigParser ( base_folder , storage_folder = storage_folder ) #NEWLINE# return server_config