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

[BUG] #65522

Closed
kefatong opened this issue Nov 8, 2023 · 2 comments
Closed

[BUG] #65522

kefatong opened this issue Nov 8, 2023 · 2 comments
Labels
Bug broken, incorrect, or confusing behavior Duplicate Duplicate of another issue or PR - will be closed needs-triage

Comments

@kefatong
Copy link

kefatong commented Nov 8, 2023

SLS file

extract_package:
module.run:
- name: archive.unzip
- zip_file: "C:/AgentCacheFiles/{{ pillar.package_name }}.zip"
- dest: "C:/AgentCacheFiles"
- password: 'xxxxxxx'

####### SLS Exec output #######

ID: extract_package
Function: module.run
    Name: archive.unzip
  Result: False
 Comment: Module function archive.unzip threw an exception. Exception: Exception encountered unpacking zipfile: pwd: expected bytes, got str
 Started: 14:25:08.362932
Duration: 31.277 ms
 Changes:

Summary for windows_agent1

######## CLI Exec Output #########
salt -c config/salt '*' archive.unzip C:/AgentCacheFiles/Windows.zip C:/AgentCacheFiles/ password='xxxx'

windows_agent1:
ERROR: Exception encountered unpacking zipfile: pwd: expected bytes, got str

####### Salt Version ########
salt -c config/salt '*' test.version
windows_agent1:
3005.4

@kefatong kefatong added Bug broken, incorrect, or confusing behavior needs-triage labels Nov 8, 2023
Copy link

welcome bot commented Nov 8, 2023

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@OrangeDog
Copy link
Contributor

Duplicate of #61422. Fixed in 3006.

@OrangeDog OrangeDog added the Duplicate Duplicate of another issue or PR - will be closed label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Duplicate Duplicate of another issue or PR - will be closed needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants