Machine.SetInstanceStatus not strict on status
Bug #1657712 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Low
|
Unassigned |
Bug Description
If you look at Machine.SetStatus it explicitly checks what values you're allowed to pass to it, and certain states are not allowed at certain times.
Machine.
Consider adding something like the attached patch.
Obviously you also need to deal with the fallout. One of the key pieces is that *many* code paths actually pass status.Pending, we need to confirm if that is a legitimate status, and how it differs from status.
To post a comment you must log in.
Strict SetInstanceStatus states.