Skip to content

Conversation

@tek0011
Copy link

@tek0011 tek0011 commented Jul 26, 2024

The issue is when using username/password that the base64.b64encode function requires a bytes-like object, but it's receiving a string instead.

We can fix this by encoding the username and password string before passing it to base64.b64encode.

@theforeman-bot
Copy link
Member

Can one of the admins verify this patch?

@sbernhard
Copy link
Contributor

@tek0011
Copy link
Author

tek0011 commented Jul 29, 2024

Im not sure the original file was correctly formatted. I have ran this through python linting, it should now be following pythons suggested formatting. This is following PEP 8, but I can remove the empty lines between comments and def's if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants