Skip to content

add V1 task creation for windows schedule tasks#68983

Open
nychef wants to merge 4 commits intosaltstack:masterfrom
nychef:win_task-v1
Open

add V1 task creation for windows schedule tasks#68983
nychef wants to merge 4 commits intosaltstack:masterfrom
nychef:win_task-v1

Conversation

@nychef
Copy link
Copy Markdown

@nychef nychef commented Apr 22, 2026

What does this PR do?

Add the ability to create V1 scheduled tasks in Windows using the compatibility argument

What issues does this PR fix or reference?

Fixes

Previous Behavior

All tasks were V2 tasks

New Behavior

The default is V2 but this can be overriden with the compatibility argument

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

@nychef nychef requested a review from a team as a code owner April 22, 2026 21:55
Comment thread salt/modules/win_task.py Outdated
# Check for required kwargs
if kwargs.get("subscription", False):
trigger.Id = "Event_ID1"
trigger.Id = "Event_{}".format(kwargs.get("subscription"))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use f string instead of .format: f"Event_{kwargs['subscription']}"

@nychef
Copy link
Copy Markdown
Author

nychef commented Apr 28, 2026

changelog added as well

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.

2 participants