lib/puppet/provider/vc_vm/default.rb
def disk_specs(path)
    specs = []
    unit = 0
    if resource[:virtual_disks]
      resource[:virtual_disks].each do |vd|
        size = vd["size"].to_i * 1024 * 1024
        specs << disk_spec(path, size, unit)
        unit += 1
      end
    else
      specs << disk_spec(path, resource[:disk_size], unit)
    end

    specs
  end
#Returns an array of all the disk specs
Returns an array of all the disk specs
Returns an array of all the disk specs
def disk_specs(path)
    specs = []
    unit = 0
    if resource[:virtual_disks]
      resource[:virtual_disks].each do |vd|
        size = vd["size"].to_i * 1024 * 1024
        specs << disk_spec(path, size, unit)
        unit += 1
      end
    else
      specs << disk_spec(path, resource[:disk_size], unit)
    end
    specs
  end
def disk_specs ( path ) specs = [ ] unit = 0 if resource [ :virtual_disks ] resource [ :virtual_disks ] . each do | vd | size = vd [ "size" ] . to_i * 1024 * 1024 specs << disk_spec ( path , size , unit ) unit += 1 end else specs << disk_spec ( path , resource [ :disk_size ] , unit ) end specs end
Returns an array of all the disk specs
Returns an array of all the disk specs
path