Skip to content

Fix Power Management "Perform Immediately" bug.#780

Open
jpugliese wants to merge 1 commit intoFOGProject:dev-branchfrom
jpugliese:stable
Open

Fix Power Management "Perform Immediately" bug.#780
jpugliese wants to merge 1 commit intoFOGProject:dev-branchfrom
jpugliese:stable

Conversation

@jpugliese
Copy link

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.

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.
@darksidemilk darksidemilk changed the base branch from stable to dev-branch February 15, 2026 17:54
@darksidemilk
Copy link
Member

Thank you for your contribution!
As soon as we have a chance to test this internally we'll get it added!

mastacontrola added a commit that referenced this pull request Mar 2, 2026
… does not require this. This should be all thats necessary to address the real problem provided from #780.
@mastacontrola
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants