DescriptionAdd dirty flag to machine state
When choosing an unused machine to assign a unit to, a check was being made
to see if there were any principal units for the machine. If machines had units
assigned and then unassigned, the machine would appear clean since number of
principal unit goes to 0 but the machine should still be considered dirty.
The machine state has a "clean" flag (boolean). Machines are created with the
clean flag set to true. It is set false when a machine has a unit assigned,
and not reset when units are unassigned. The assign to unused machine logic
is updated to look at the clean flag.
https://code.launchpad.net/~wallyworld/juju-core/add-machine-dirty-flag/+merge/165954
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 13
Patch Set 2 : Add dirty flag to machine state #
Total comments: 1
Patch Set 3 : Add dirty flag to machine state #
MessagesTotal messages: 10
|