choria-legacy / mcollective-choria

Distribution of plugins for MCollective as found in Puppet 6
Apache License 2.0
56 stars 24 forks source link

when modulepath is unset playbook app fails badly when a playbook isnt found #611

Closed ripienaar closed 4 years ago

ripienaar commented 4 years ago
$ mco playbook run emulator::status
Cannot find supplied Playbook emulator::status

Module Path:

Traceback (most recent call last):
        7: from /usr/bin/mco:23:in `<main>'
        6: from /usr/bin/mco:23:in `load'
        5: from /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/choria-mcorpc-support-2.20.8/bin/mco:33:in `<top (required)>'
        4: from /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/choria-mcorpc-support-2.20.8/lib/mcollective/applications.rb:23:in `run'
        3: from /opt/puppetlabs/mcollective/plugins/mcollective/application/playbook.rb:76:in `run'
        2: from /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/choria-mcorpc-support-2.20.8/lib/mcollective/monkey_patches.rb:109:in `mktmpdir'
        1: from /opt/puppetlabs/mcollective/plugins/mcollective/application/playbook.rb:81:in `block in run'
/opt/puppetlabs/mcollective/plugins/mcollective/application/playbook.rb:65:in `runner': undefined method `split' for nil:NilClass (NoMethodError)

because modulepath is nil.