Project

General

Profile

Actions

Bug #8005

closed

Another autoloading o NIC models issue

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

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

https://github.com/theforeman/foreman/commit/5da15d1ad20a71b65ad858d392e17fb46f074480 introduced a new issue of loading NIC models. Running specific tests fails because when loading Nic::Managed we loads Nic::Base which defined Nic::TYPES listing Nic::Managed (not loaded yet but in being loaded files array). Types are used only in API for listing values that can be used and it's converted to array of strings so we can safely define them as strings in class definition.


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #7934: Autoloading of Nic models does not work in some casesClosedMarek Hulán10/14/2014Actions
Related to Foreman - Bug #8044: uninitialized constant Nic::Interface (NameError) when running sporkDuplicateJoseph Magen10/23/2014Actions
Actions

Also available in: Atom PDF