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

Open file in 'w' mode instead of 'wb' #314

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

ogajduse
Copy link
Contributor

Issue on RHEL8: TypeError: a bytes-like object is required, not 'str'
We were trying to write binary where open() requires bytes
but we are trying to write str.

I have tested only on RHEL8. Expecting that this change will not break anything on other RHEL versions.

Issue on RHEL8: TypeError: a bytes-like object is required, not 'str'
We were trying to write binary where open() requires bytes
but we are trying to write str.
@evgeni evgeni merged commit 30a447f into Katello:master Jul 16, 2019
@evgeni evgeni added this to the 1.7.3 milestone Jul 22, 2019
evgeni added a commit that referenced this pull request Sep 9, 2019
* BZ #1659414 - don't fail on unknown smart proxies (#315)
* BZ #1729179 - don't migrate EL8 hosts (#317)
* Puppet 6 support (#316)
* BZ#1717096: only pass --remove-rhn-packages when also doing legacy purge (#313)
* Open file in 'w' mode instead of 'wb' (#314)
* BZ #1710546 - decode ALL results we get from rpm (#310)
* update puppet config when puppet is not skipped, not foreman
* move enable_rhsmcertd just after doing the subscription stuff
* only execute API calls of "new capsule" mode when Foreman is not skipped
* improve error message when running on an registered host
@evgeni evgeni mentioned this pull request Sep 9, 2019
evgeni added a commit that referenced this pull request Sep 9, 2019
* BZ #1659414 - don't fail on unknown smart proxies (#315)
* BZ #1729179 - don't migrate EL8 hosts (#317)
* Puppet 6 support (#316)
* BZ#1717096: only pass --remove-rhn-packages when also doing legacy purge (#313)
* Open file in 'w' mode instead of 'wb' (#314)
* BZ #1710546 - decode ALL results we get from rpm (#310)
* update puppet config when puppet is not skipped, not foreman
* move enable_rhsmcertd just after doing the subscription stuff
* only execute API calls of "new capsule" mode when Foreman is not skipped
* improve error message when running on an registered host
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