Project

General

Profile

« Previous | Next » 

Revision 96ede451

Added by Amos Benari about 12 years ago

  • ID 96ede451fc45d6d8e5786d62d4c92adc97c46ad3

fixes #1574 - ovirt - add remove and show volumes

  • volume and interface ordering is now working
  • removed include blank because it is a duplicate of the Blank ovirt-template.
  • bootable is disabled when editing a vm, because currently I don't handle volume updates. just add and remove of a volume.
  • Volumes are created in the order that they where created in the gui. Bootable is set by default to the first volume.
  • update to the latest rbovirt gem.

View differences:

lib/server_interfaces.rb
attributes[:memory_size].to_i * 1024
end
def memory=mem
def memory= mem
attributes[:memory_size] = mem.to_i / 1024 if mem
end
end
end
class Ovirt
class Volume < Fog::Model
def as_json(options={})
size_gb
super options
end
end
end
end
end
end

Also available in: Unified diff