code: def _override_size(vm_):
      '''
      Apply any extra component overrides to VM from the cloud profile.
      '''
      vm_size = get_size(vm_)
  
      if 'cores' in vm_:
          vm_size['cores'] = vm_['cores']
  
      if 'ram' in vm_:
          vm_size['ram'] = vm_['ram']
  
      return vm_sizf _override_size(vm_):
      '''
      Apply any extra component overrides to VM from the cloud profile.
      '''
      vm_size = get_size(vm_)
  
      if 'cores' in vm_:
          vm_size['cores'] = vm_['cores']
  
      if 'ram' in vm_:
          vm_size['ram'] = vm_['ram']
  
      return vm_size
docs: Apply any extra component overrides to VM from the cloud profile.