-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scheduled shutdown task fails due to type issue #2805 #2812
Scheduled shutdown task fails due to type issue #2805 #2812
Conversation
Add type hints to the shutdown/reboot run_command() wrapper parameters in osi.py, and to command.py's use of these wrappers. Includes fix for legacy inadvertent integer in delay during scheduled task calls.
TestingBeforeBefore the proposed changes we have (line numbers approximate):
AfterUsing an rpm build with this PR's associated changes (against current testing branch, with the following squecheduled task:
We see the following in an ssh terminal:
On next boot-up we have the following scheduled task report:
|
Scheduled Reboot testAgain with the custom rpm built to test these modifications:
Terminal output:
Re-visiting the Web-UI post scheduled reboot completion and we have the task details as follows:
With the details (2 minutes ago link) for this task as follows:
|
@FroggyFlox & @Hooverdan96 I'll go ahead and merge this as it's a spin-off of sorts to the ongoing development in draft PR: [t] Add Group with custom GID fails with type error #2807 #2811 Where I'm also adding some more type-hints and type casting. And I'd like to re-base that work on these changes. And from the testing comments above, and rpmbuild tests, these changes look to be doing what we intend again. |
Add type hints to the shutdown/reboot run_command() wrapper parameters in osi.py, and to command.py's use of these wrappers. Includes fix for legacy inadvertent integer in delay during scheduled task calls.
Fixes #2805