#NEWLINE# def convert_image( self , disk_format , path_to_image , output_format = 'raw' , baseimage = 'baseimage' , baseimage_tmp = 'baseimage.tmp' , host_compute = None ) : #NEWLINE# #INDENT# cmd1 = self . convert_full_image_cmd ( path_to_image , disk_format , output_format , baseimage , baseimage_tmp ) #NEWLINE# cmd2 = cmd_cfg . move_cmd ( path_to_image , baseimage_tmp , baseimage ) #NEWLINE# return ( self . execute ( cmd1 , path_to_image ) , self . execute ( cmd2 , host_compute ) )