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

bugfix: reading tgz files with binread #1920

Merged
merged 1 commit into from
Jun 12, 2017
Merged

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented Jun 12, 2017

This is currently failing because both alias and alias_method create method imprints in the FileProvider. This leads to a failure where the TarProvider assumes it doesn't implement binread, which in fact it does, since it just calls read.

Easily visible with:

> inspec json meta-profile-0.2.0.tar.gz
RuntimeError: #<Inspec::TarProvider:0x00000003b83280> does not implement `read(...)`. This is required.

Signed-off-by: Dominik Richter dominik.richter@gmail.com

This is currently failing because both `alias` and `alias_method` create method imprints in the FileProvider. This leads to a failure where the TarProvider assumes it doesn't implement `binread`, which in fact it does, since it just calls `read`.

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
@arlimus arlimus added in progress Type: Bug Feature not working as expected and removed in progress labels Jun 12, 2017
@arlimus
Copy link
Contributor Author

arlimus commented Jun 12, 2017

Updates to the test that is catching this is in: #1919
Left it there to prevent merge-conflicts.

Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you @arlimus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants