app/models/manageiq/providers/redhat/infra_manager.rb
# prepare disk attachment request payload of adding disk for reconfigure vm
prepare disk attachment request payload of adding disk for reconfigure vm
prepare disk attachment request payload of adding disk for reconfigure vm
def prepare_disk(disk_spec, storage)
    disk_spec = disk_spec.symbolize_keys
    da_options = {
      :size_in_mb       => disk_spec[:disk_size_in_mb],
      :storage          => storage,
      :name             => disk_spec[:disk_name],
      :thin_provisioned => disk_spec[:thin_provisioned],
      :bootable         => disk_spec[:bootable],
    }
    disk_attachment_builder = DiskAttachmentBuilder.new(da_options)
    disk_attachment_builder.disk_attachment
  end
def prepare_disk ( disk_spec , storage ) disk_spec = disk_spec . symbolize_keys da_options = { :size_in_mb => disk_spec [ :disk_size_in_mb ] , :storage => storage , :name => disk_spec [ :disk_name ] , :thin_provisioned => disk_spec [ :thin_provisioned ] , :bootable => disk_spec [ :bootable ] , } disk_attachment_builder = DiskAttachmentBuilder . new ( da_options ) disk_attachment_builder . disk_attachment end
prepare disk attachment request payload of adding disk for reconfigure vm
prepare disk attachment request payload of adding disk for reconfigure vm
disk_spec
<not_specific>
storage
<not_specific>