#5990 Py3: zonemgr_callback: expected unicode, got bytes
Closed: fixed Opened by mbasti.

Following code in zonemgr_callback

            stderr_encoding = getattr(sys.stderr, 'encoding', None)
            if stderr_encoding is None:
                stderr_encoding = 'utf-8'
            error = unicode(e).encode(stderr_encoding)
            parser.error("invalid zonemgr: " + error)

error variable contains bytes, and bytes cannot be concatenated with string(unicode) in python3


mass moving python3 tickets to FreeIPA 4.6 which should be smaller release targeted mainly on python3 porting.

Metadata Update from @mbasti:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.6

Metadata Update from @mbasti:
- Issue close_status updated to: None
- Issue tagged with: py3

Metadata Update from @fbarreto:
- Issue assigned to fbarreto (was: mbasti)

PR: https://github.com/freeipa/freeipa/pull/923

master:

  • 75d26e1f0121f875bdb017b0636c02a6f5660e8a py3: fixing zonemgr_callback

Metadata Update from @pvomacka:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata