IPv6AddressScoped._is_packed_binary() is not python3 compatible #51831
Labels
Bug
broken, incorrect, or confusing behavior
P2
Priority 2
severity-critical
top severity, seen by most users, serious issues
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
v2018.3.5
unsupported version
v2019.2.1
unsupported version
Milestone
Description of Issue/Question
Using salt 2013.3.4 we see a regression caused by method
IPv6AddressScoped._is_packed_binary()
which is not python3 compatible.This finally breaks our ability to perform downloads e.g. from s3 due to the exception:
The method is
and the line
packed = bool(int(str(bytearray(data)).encode('hex'), 16))
does not work in python 3. This should be something likepacked = bool(int(str(bytearray(data, 'utf-8')).encode('utf-8').hex(), 16))
or
Setup
Vanilla Windows with vanilla salt 2018.3.4 py3 AMD 64
Versions Report
The text was updated successfully, but these errors were encountered: