Fix Power Management "Perform Immediately" bug.#780
Fix Power Management "Perform Immediately" bug.#780jpugliese wants to merge 1 commit intoFOGProject:dev-branchfrom
Conversation
When pmOndemand=1, the backend still requires pmMin/pmHour/etc. This patch populates time fields before save(), preventing "Required database field is empty: min". Tested on FOG 1.5.x with shutdown and reboot tasks.
|
Thank you for your contribution! |
… does not require this. This should be all thats necessary to address the real problem provided from #780.
|
So I have added code that should prevent the need to do this. Your method, while a work around doesn't actually fix the real problem. Your method effectively makes the Power On task a yearly task (whenever the dow matches the dom). (So a ~ 4 year automated task.) Basically the problem is we added coded to prevent updating things if a "required" database field isn't defined. This has some unexpected side effects while we fix the underlying code appropriately. Please review with the latest code in dev-branch (not your patch please) and validate that Powermanagement Ondemand items works appropriately now? Thank you and apologies on the delay. |
|
@jpugliese: Any progress on it? |
When pmOndemand=1, the backend still requires pmMin/pmHour/etc. This patch populates time fields before save(), preventing "Required database field is empty: min".
Tested on FOG 1.5.x with shutdown and reboot tasks.