#NEWLINE# def _get_image( vm_ ) : #NEWLINE# #INDENT# "\n    Return the VM's image. Used by create().\n    " #NEWLINE# images = avail_images ( ) #NEWLINE# vm_image = str ( config . get_cloud_config_value ( 'image' , vm_ , __opts__ , search_global = False ) ) #NEWLINE# if ( not vm_image ) : #NEWLINE# #INDENT# raise SaltCloudNotFound ( 'No image specified for this VM.' ) #NEWLINE# #UNINDENT# if ( vm_image in images ) : #NEWLINE# #INDENT# return vm_image #NEWLINE# #UNINDENT# raise SaltCloudNotFound ( "The specified image, '{0}', could not be found." . format ( vm_image ) )