The problem is that Device.auto_upgrades does not contain enough info, that's why we have Device.auto_upgrades_enabled() which makes the final decision.
@rptrchv I believe it would be easier to either fix this in agent or to make the final decision during generate_recommended_actions() or even during ping, store it in Device.auto_upgrades and drop Device.auto_upgrades_enabled().
The problem is that
Device.auto_upgrades
does not contain enough info, that's why we haveDevice.auto_upgrades_enabled()
which makes the final decision. @rptrchv I believe it would be easier to either fix this in agent or to make the final decision duringgenerate_recommended_actions()
or even during ping, store it inDevice.auto_upgrades
and dropDevice.auto_upgrades_enabled()
.