Giter VIP home page Giter VIP logo

Comments (1)

ekohl avatar ekohl commented on June 23, 2024

It appears to be this code:

def self.all
hash = {}
list_alternatives.map { |x| File.basename(x) }.each do |name|
output = update('--display', name)
mode = output.match(ALT_RPM_QUERY_CURRENT_REGEX)[1]
path = output.match(ALT_RPM_QUERY_CURRENT_REGEX)[2]
hash[name] = { path: path, mode: mode }
rescue StandardError
Puppet.warning format(_('Failed to parse alternatives entry %{name}'), name: name)
end
hash
end

It is using a syntax that is only valid with Ruby 2.5 while 5.5 ships Ruby 2.4. It was modified in cf4881a so 4.0.0 should work. Perhaps it's not properly deployed or not picking up the change?

Either way, the module version 4.x does not support Puppet agent 5. Since Puppet 5 is EOL, I'd recommend upgrading to at least Puppet 6 but preferably to Puppet 7.

from puppet-alternatives.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.