def get_vm_size(vm_):
 vm_size = config.get_cloud_config_value('size', vm_, __opts__)
 ram = avail_sizes()[vm_size]['RAM']
 if vm_size.startswith('Linode'):
  vm_size = vm_size.replace('Linode ', '')
 if (ram == int(vm_size)):
  return ram
 else:
  raise SaltCloudNotFound('The specified size, {0}, could not be found.'.format(vm_size))

def get_vm_size ( vm_ ) : vm_size = config . get_cloud_config_value ( 'size' , vm_ , __opts__ ) ram = avail_sizes ( ) [ vm_size ] [ 'RAM' ] if vm_size . startswith ( 'Linode' ) : vm_size = vm_size . replace ( 'Linode ' , '' ) if ( ram == int ( vm_size ) ) : return ram else : raise SaltCloudNotFound ( 'The specified size, {0}, could not be found.' . format ( vm_size ) )
returns the vms size .