[Nailgun] Rename "role" into "node_role"
Bug #1473077 reported by
Ihor Kalnytskyi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Opinion
|
Low
|
Fuel Python (Deprecated) |
Bug Description
Since 7.0 we'll have:
* node roles
* network roles
By legacy, everywhere in the code we assume by "role" the "node role" entity.
Perhaps in order to avoid confusion with network role we should rename it to "node role".
Pros:
* Avoid confusion, let's keep code clear
Cons:
* We can't rename all the stuff, or we'll need to introduce new hacks in order to be compatible with old serializers
I'd like to hear there more opinion.
The idea is to have clear-cut distinction in term role. Each time you look at a role, you have to figure out which entity it refers to. I vote for the principle of least astonishment in the code and make the distinction in naming.
@Igor, you're talking about introducing new hacks. Could you please list them?