def _get_size(vm_):
 sizes = avail_sizes()
 vm_size = str(config.get_cloud_config_value('size', vm_, __opts__, search_global=False))
 if (not vm_size):
  raise SaltCloudNotFound('No size specified for this instance.')
 if (vm_size in sizes.keys()):
  return vm_size
 raise SaltCloudNotFound("The specified size, '{0}', could not be found.".format(vm_size))

def _get_size ( vm_ ) : sizes = avail_sizes ( ) vm_size = str ( config . get_cloud_config_value ( 'size' , vm_ , __opts__ , search_global = False ) ) if ( not vm_size ) : raise SaltCloudNotFound ( 'No size specified for this instance.' ) if ( vm_size in sizes . keys ( ) ) : return vm_size raise SaltCloudNotFound ( "The specified size, '{0}', could not be found." . format ( vm_size ) )
get the size of this pseudo terminal .