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

cli: skip superfluous text -> bytes conversion on clufter's output #130

Merged
merged 1 commit into from Mar 22, 2017

Conversation

jnpkrn
Copy link
Contributor

@jnpkrn jnpkrn commented Mar 22, 2017

Respective outputs are already represented with bytes (as 'bytestring'
protocol suggests), and moreover, such bytes cannot be "encoded" in
Python 3 otherwise leading to AttributeError (bytes object has no
attribute encode) exception.

Note that this is only relevant in Python 3 context, which pcs uses
by default in python3-charged distros (e.g. Fedora) and which is now
supported in clufter (which enabled a discovery of this discrepancy):
http://oss.clusterlabs.org/pipermail/users/2017-March/005323.html

@jnpkrn
Copy link
Contributor Author

jnpkrn commented Mar 22, 2017

Tested with: pcs config {import-cman,export pcs-commands*} in Fedora rawhide

Respective outputs are already represented with bytes (as 'bytestring'
protocol suggests), and moreover, such bytes cannot be "encoded" in
Python 3 otherwise leading to AttributeError (bytes object has no
attribute encode) exception.

Note that this is only relevant in Python 3 context, which pcs uses
by default in python3-charged distros (e.g. Fedora) and which is now
supported in clufter (which enabled a discovery of this discrepancy):
http://oss.clusterlabs.org/pipermail/users/2017-March/005323.html

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
@tomjelinek tomjelinek merged commit c5f8001 into ClusterLabs:master Mar 22, 2017
@jnpkrn jnpkrn deleted the python3-clufter branch March 23, 2017 12:35
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.

None yet

2 participants