Project

General

Profile

Actions

Bug #24488

closed

Help rendering fails

Added by Marek Hulán over 6 years ago. Updated over 6 years ago.

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

Description

This seems to be a regression caused by #18532, resource is a class method.

Actions #1

Updated by The Foreman Bot over 6 years ago

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

Updated by Marek Hulán over 6 years ago

  • Bugzilla link set to 1611004
Actions #3

Updated by Martin Bacovsky over 6 years ago

The description of the problem is not entirely correct. The resource as an instance method is present. What is actually going on there is that when the resource is missing in API it is set to nil and warning is printed. Later when we are asking for the resource assigned to the command we see the nil and try to ask the parent command which is the MainCommand for the top level commands. The MainCommand is not child of ApipieCommand and has no resource assigned and this is the place where the original error comes from "Error: undefined method `resource' for HammerCLI::MainCommand:Class".

Actions #4

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Martin Bacovsky over 6 years ago

  • Fixed in Releases hammer-cli 0.14.0 added
Actions #6

Updated by Martin Bacovsky over 6 years ago

  • Fixed in Releases hammer-cli 0.13.1 added
Actions

Also available in: Atom PDF