lib/puppet/provider/vc_vm/default.rb
# return iso_bakinginfo object only if iso_file name is present in resource.
return iso_bakinginfo object only if iso_file name is present in resource.
return iso_bakinginfo object only if iso_file name is present in resource .
def cd_drive_backing_info(datastore=nil)
    if datastore && iso_file
      return RbVmomi::VIM.VirtualCdromIsoBackingInfo(:datastore => datastore, :fileName => "[#{datastore.info.name}]/#{iso_file}")
    else
      return RbVmomi::VIM.VirtualCdromRemotePassthroughBackingInfo(:deviceName => "CDROM", :exclusive => false, :useAutoDetect => false)
    end
  end
def cd_drive_backing_info ( datastore = nil ) if datastore && iso_file return RbVmomi :: VIM . VirtualCdromIsoBackingInfo ( :datastore => datastore , :fileName => "[#{datastore.info.name}]/#{iso_file}" ) else return RbVmomi :: VIM . VirtualCdromRemotePassthroughBackingInfo ( :deviceName => "CDROM" , :exclusive => false , :useAutoDetect => false ) end end
return iso_bakinginfo object only if iso_file name is present in resource.
return iso_bakinginfo object only if iso_file name is present in resource .
datastore