Bug #9552

Auto_provision from discovered host view form shows an error

Added by Ori Rabin over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assigned To:Ori Rabin
Category:Discovery plugin
Target version:Plugin 2.0.1
Difficulty: Pull request:https://github.com/theforeman/foreman_discovery/pull/162
Bugzilla link:
Story points-
Velocity based estimate-

Description

The actual error says

 NoMethodError in Discovered_hosts#show
 undefined method `to_label' for nil:NilClass

but this is a result of auto_provision trying to go back to the view form for a discovered_host that no longer exists.
It should redirect to the managed hosts display page or back to the list of discovered hosts.

Associated revisions

Revision 924fb4f9
Added by Ori Rabin over 2 years ago

Fixes #9552 - fixed routing for auto_provision from discovered host view

History

#1 Updated by Ori Rabin over 2 years ago

  • Status changed from New to Assigned
  • Assigned To set to Ori Rabin

#2 Updated by The Foreman Bot over 2 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/162 added

#3 Updated by Lukas Zapletal over 2 years ago

  • Target version set to Plugin 2.0.1

#4 Updated by Ori Rabin over 2 years ago

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

Also available in: Atom PDF