#NEWLINE# def _get_size( vm_ ) : #NEWLINE# #INDENT# "\n    Return the VM's size. Used by create().\n    " #NEWLINE# sizes = avail_sizes ( ) #NEWLINE# vm_size = str ( config . get_cloud_config_value ( 'size' , vm_ , __opts__ , search_global = False ) ) #NEWLINE# if ( not vm_size ) : #NEWLINE# #INDENT# raise SaltCloudNotFound ( 'No size specified for this instance.' ) #NEWLINE# #UNINDENT# if ( vm_size in sizes . keys ( ) ) : #NEWLINE# #INDENT# return vm_size #NEWLINE# #UNINDENT# raise SaltCloudNotFound ( "The specified size, '{0}', could not be found." . format ( vm_size ) )