Skip to content

Add win_shortcut execution and state modules#62025

Merged
Ch3LL merged 5 commits into
saltstack:masterfrom
twangboy:win_shortcut
Jun 2, 2022
Merged

Add win_shortcut execution and state modules#62025
Ch3LL merged 5 commits into
saltstack:masterfrom
twangboy:win_shortcut

Conversation

@twangboy
Copy link
Copy Markdown
Contributor

@twangboy twangboy commented May 4, 2022

What does this PR do?

Adds an execution module and a state module for working with shortcuts on Windows.

Splits out the file.shortcut code into it's own execution module and state module
Adds future deprecation for the file.shortcut state function to be removed in Argon
Adds functional tests for the two new modules

What issues does this PR fix or reference?

Fixes: #61170
Fixes: #53706

Previous Behavior

All code for creating shortcuts resided in the file.shortcut state module. No execution module.

New Behavior

Abstracts the execution logic from the state logic by breaking them apart. Allows for the more salty shortcut.present state name for creating a new shortcut.

Merge requirements satisfied?

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

Commits signed with GPG?

Yes

@twangboy twangboy requested a review from a team as a code owner May 4, 2022 22:34
@twangboy twangboy requested review from garethgreenaway and removed request for a team May 4, 2022 22:34
@twangboy twangboy force-pushed the win_shortcut branch 3 times, most recently from b85ba6b to 0d5d838 Compare May 5, 2022 00:29
@twangboy twangboy added this to the Sulphur v3006.0 milestone May 5, 2022
@Ch3LL Ch3LL added the Phosphorus v3005.0 Release code name and version label May 10, 2022
Comment thread changelog/53706.fixed Outdated
Comment thread salt/modules/win_shortcut.py Outdated
Comment thread salt/modules/win_shortcut.py Outdated
Comment thread salt/modules/win_shortcut.py Outdated
Comment thread salt/modules/win_shortcut.py Outdated
Comment thread salt/modules/win_shortcut.py Outdated
Comment thread salt/states/win_shortcut.py Outdated
Comment thread salt/utils/path.py Outdated
@twangboy twangboy force-pushed the win_shortcut branch 2 times, most recently from f3ceb80 to 1ee588d Compare May 21, 2022 04:07
Ch3LL
Ch3LL previously approved these changes May 24, 2022
@Ch3LL Ch3LL merged commit c8b1dd3 into saltstack:master Jun 2, 2022
@twangboy twangboy deleted the win_shortcut branch March 23, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Phosphorus v3005.0 Release code name and version

Projects

None yet

3 participants