Project

General

Profile

Actions

Bug #14969

closed

Custom status is not reloaded correctly

Added by Marek Hulán almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If a custom status is registered from a plugin and user is running Foreman in development mode, status class is not correctly reloaded in HostStatus.status_registry. When we later iterate over it, status is missing there and is not refreshed. To reproduce, install e.g. remote execution plugin and try to do some change in code. After another job invocation, the status is not updated (good place to observe with pry is finalize method of RunHostJob action)


Related issues 2 (0 open2 closed)

Related to Foreman - Refactor #12747: Provide some kind of central store or consistent way to manage dynamically registered objects from pluginsResolved12/08/2015Actions
Blocked by Foreman - Feature #14588: Improve extending template helpers from plugin ClosedMarek Hulán04/12/2016Actions
Actions

Also available in: Atom PDF