Skip to content

Running bolt guide with rainbow formatter causes crash #229

@op-ct

Description

@op-ct

Describe the Bug

Running bolt guide using the rainbow formatter causes a crash:

/opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/lib/bolt/outputter/rainbow.rb:109:in `print_topics': undefined method `join' for {:topics=>["debugging", "inventory", "links", "logging", "module", "modulepath", "project", "targets", "transports"]}:Hash (NoMethodError)

        content += topics.join("\n")
                         ^^^^^
	from /opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/lib/bolt/cli.rb:525:in `process_command'
	from /opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/lib/bolt/cli.rb:466:in `block (2 levels) in execute'
	from /opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/lib/bolt/cli.rb:873:in `with_error_handling'
	from /opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/lib/bolt/cli.rb:340:in `block in execute'
	from /opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/lib/bolt/cli.rb:890:in `with_signal_handling'
	from /opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/lib/bolt/cli.rb:339:in `execute'
	from /opt/puppetlabs/bolt/lib/ruby/gems/3.2.0/gems/openbolt-5.5.0/exe/bolt:11:in `<top (required)>'
	from /opt/puppetlabs/bolt/bin/bolt:25:in `load'
	from /opt/puppetlabs/bolt/bin/bolt:25:in `<main>'

Expected Behavior

It should display the guide topics without problems

Steps to Reproduce

  1. bolt --format rainbow guide

Environment

  • Version: openbolt 5.5.0
  • Platform: Fedora 43

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions