#NEWLINE# def upload( self ) : #NEWLINE# #INDENT# 'Start the upload process' #NEWLINE# self . logger . info ( ( 'Using config files: %s' % self . config_files ) ) #NEWLINE# upload_images = self . load_config_files ( self . CONFIG_SECTIONS [ 1 ] ) #NEWLINE# for item in upload_images : #NEWLINE# #INDENT# image_name = item . get ( 'imagename' ) #NEWLINE# uploader = item . get ( 'uploader' ) #NEWLINE# pull_source = item . get ( 'pull_source' ) #NEWLINE# push_destination = item . get ( 'push_destination' ) #NEWLINE# self . logger . info ( ( 'imagename: %s' % image_name ) ) #NEWLINE# uploader = ImageUploader . get_uploader ( uploader ) #NEWLINE# uploader . upload_image ( image_name , pull_source , push_destination ) #NEWLINE# #UNINDENT# return upload_images