def _override_size(vm_):
 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

def _override_size ( vm_ ) : 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
apply any extra component overrides to vm from the cloud profile .