Skip to content
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

Suffix temp file with .sr1 and add mandatory argument when executing PowerShell script #34201

Merged
merged 2 commits into from
Jun 22, 2016

Conversation

lukasraska
Copy link
Contributor

@lukasraska lukasraska commented Jun 22, 2016

What does this PR do?

Suffixes created temp file .sr1 and adds -File argument when executing PowerShell script via cmdmod.exec_code / exec_code_all

What issues does this PR fix or reference?

Fixes #34199 and requires #34198 for proper work.

Previous Behavior

PowerShell script could not be executed due to restrictions on end system (script has to end with extension sr1 and full command for executing is 'powershell -File script.sr1'

New Behavior

Execution works properly

Tests written?

No

@cachedout cachedout merged commit 606ae3c into saltstack:2016.3 Jun 22, 2016
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