Project

General

Profile

Bug #21211

Providing invalid phase in foreman-maintain upgrade run shows undefined method `to_hash' for nil:NilClass

Added by Kavita Gaikwad 11 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
-
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Description of problem: While running foreman-maintain upgrade run with option --phase provided invalid phase name shows "undefined method `to_hash' for nil:NilClass".

Version-Release number of selected component (if applicable): Foreman-maintain snap 2.0

How reproducible: always

Steps to Reproduce:

1. # foreman-maintain upgrade run --phase pre-upgrade

Actual results:
Error as "undefined method `to_hash' for nil:NilClass"

Expected results: Error should get handled and proper message showing phase is invalid.

Associated revisions

Revision 25a08e78 (diff)
Added by Kavita Gaikwad 10 months ago

Fixes #21211 - show error for invalid phase while running upgrade

History

#1 Updated by The Foreman Bot 10 months ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/108 added

#2 Updated by Kavita Gaikwad 10 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF