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

Add password support for zip files in archive module and state #31116

Merged
merged 4 commits into from
Feb 11, 2016
Merged

Add password support for zip files in archive module and state #31116

merged 4 commits into from
Feb 11, 2016

Conversation

UtahDave
Copy link
Contributor

Add password support for zip files in archive module and state

Fixes: #26569

ZD 408

zipfile should be there.

This decorator appears to fail on Windows. The function works fine
without the decorator
@@ -560,7 +570,7 @@ def unzip(zip_file, dest, excludes=None,
source = zfile.read(target)
os.symlink(source, os.path.join(dest, target))
continue
zfile.extract(target, dest)
zfile.extract(target, dest, password)
Copy link
Contributor

Choose a reason for hiding this comment

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

I tested this to see what would happen if password=None and it seems to extract without a problem. So we're good!

cachedout pushed a commit that referenced this pull request Feb 11, 2016
Add password support for zip files in archive module and state
@cachedout cachedout merged commit d9a5f86 into saltstack:develop Feb 11, 2016
@rallytime rallytime added the ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch. label Feb 11, 2016
cachedout pushed a commit that referenced this pull request Feb 12, 2016
@twangboy
Copy link
Contributor

twangboy commented Mar 2, 2016

@UtahDave That same decorator is there on the zip_ function and probably doesn't work in windows either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ZZZ[Done]-back-ported-bf RETIRED The pull request has been back-ported to an older branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants