Project

General

Profile

Actions

Bug #12455

closed

Deprecation warning when writing total_hosts attribute

Added by Dominic Cleal almost 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

DEPRECATION WARNING: You're trying to create an attribute `total_hosts'. Writing arbitrary attributes on a model is deprecated. Please just use `attr_writer` etc. (called from update_domain_counters_on_create at /home/dcleal/code/foreman/foreman/app/models/nic/base.rb:225)

Seen when running host_test.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #11444: Domains page shows negative number of hostsClosedTomer Brisker08/21/2015Actions
Actions

Also available in: Atom PDF