Project

General

Profile

Bug #12784

defaults list fails when there's no defaults file created

Added by Tomáš Strachota over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

hammer -d defaults list
NoMethodError (undefined method `map' for nil:NilClass):
    /root/hammer/hammer-cli/lib/hammer_cli/defaults_commands.rb:59:in `execute'
    /usr/local/rvm/gems/ruby-2.0.0-p643/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
    /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/local/rvm/gems/ruby-2.0.0-p643/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/local/rvm/gems/ruby-2.0.0-p643/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
    /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/local/rvm/gems/ruby-2.0.0-p643/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
    /usr/local/rvm/gems/ruby-2.0.0-p643/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
    /root/hammer/hammer-cli/lib/hammer_cli/abstract.rb:22:in `run'
    /usr/local/rvm/gems/ruby-2.0.0-p643/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
    ./bin/hammer:125:in `<main>'

Associated revisions

Revision d118a3af (diff)
Added by Tomas Strachota over 4 years ago

Fixes #12784 - defaults list fails without defaults file

Revision ecc96f5b
Added by Tomas Strachota over 4 years ago

Merge pull request #188 from tstrachota/defaults_12784

Fixes #12784 - defaults list fails without defaults file

History

#1 Updated by Tomáš Strachota over 4 years ago

  • Target version set to hammer-cli 0.5.0

#2 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/188 added

#3 Updated by Anonymous over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF