Project

General

Profile

« Previous | Next » 

Revision 2309e9e1

Added by Adam, Till - D0249540 over 7 years ago

fixes #18216 - volume size editable for existing VMs one

View differences:

app/models/concerns/orchestration/compute.rb
def compute_update_required?
return false unless compute_resource.supports_update? && !compute_attributes.nil?
old.compute_attributes = compute_resource.find_vm_by_uuid(uuid).attributes
compute_resource.update_required?(old.compute_attributes, compute_attributes.symbolize_keys)
old.compute_attributes = compute_resource.vm_compute_attributes_for(uuid)
compute_resource.update_required?(old.compute_attributes, compute_attributes)
end
def find_image

Also available in: Unified diff