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

source_hash from local file is not supported. #23764

Closed
es1o opened this issue May 15, 2015 · 3 comments
Closed

source_hash from local file is not supported. #23764

es1o opened this issue May 15, 2015 · 3 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior P4 Priority 4 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@es1o
Copy link

es1o commented May 15, 2015

pyobjects salt code:

Archive.extracted('/dest',
    makedirs='True',
    archive_format='tar',
    user='user',
    group='user',
    mode='0755',
    source='file:///tmp/file.tar.gz',
    source_hash='file:///tmp/file.md5')

salt-call error:

Comment: Source hash file file:///tmp/file.md5 contains an invalid hash format, it must be in the format <hash type>=<hash>

Problem is in salt/modules/file.py in line:

protos = ['salt', 'http', 'https', 'ftp', 'swift', 's3']

should be:

protos = ['salt', 'http', 'https', 'ftp', 'swift', 's3', 'file']
@jfindlay jfindlay added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P4 Priority 4 Platform Relates to OS, containers, platform-based utilities like FS, system based apps labels May 18, 2015
@jfindlay jfindlay added this to the Approved milestone May 18, 2015
@jfindlay
Copy link
Contributor

@es1o, thanks for the report. Have you tested that change locally? You are welcome to submit a pull request for this. Be sure to reference this issue and submit the fix to the 2015.5 branch.

@es1o
Copy link
Author

es1o commented May 18, 2015

Yes, I tested this change locally and it works but I can't create pull request for this change.

@jfindlay
Copy link
Contributor

@es1o, nice, thanks. If you don't get around to submitting a pull request in the next several days, then don't worry, I'll take care of it.

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 P4 Priority 4 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

2 participants