Jira (FACT-2716) Unable to run Facter 4.0.30

2 views
Skip to first unread message

Oana Tanasoiu (Jira)

unread,
Jul 19, 2020, 5:00:04 PM7/19/20
to puppe...@googlegroups.com
Oana Tanasoiu created an issue
 
Facter / Bug FACT-2716
Unable to run Facter 4.0.30
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/07/19 1:59 PM
Priority: Normal Normal
Reporter: Oana Tanasoiu

[root@cgcldx0001 tools]# ls facter/vendor/bundle/ruby/2.3.0/gems
facter-4.0.30  hocon-1.3.1  thor-1.0.1

[root@cgcldx0001 tools]# facter/bin/facter -y
facter/bin/facter:20:in `require': cannot load such file -- custom_facts/util/collection (LoadError)
        from facter/bin/facter:20:in `<main>'

where bin/facter contains:

[root@cgcldx0001 tools]# cat facter/bin/facter
#!/usr/bin/env /usr/local/peo/tools/ruby/bin/ruby

  1. frozen_string_literal: true
    #
  2. This file was generated by Bundler.
    #
  3. The application 'facter' is installed as part of a gem, and
  4. this file is here to facilitate running it.
    #

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", Pathname.new(_FILE_).realpath)
ENV['FACTERLIB']      ||= File.expand_path("../../lib/facter",Pathname.new(_FILE_).realpath)

$VERBOSE=nil

require "rubygems"
require "bundler/setup"

#Monkey patch canonicalize() to support camelCase fact names
require 'custom_facts/util/collection'
class LegacyFacter::Util::Collection
  def canonicalize(name)
    name.to_s.to_sym
  end
end

load Gem.bin_path("facter", "facter")

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages