Guest User

Untitled

a guest
Feb 26th, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. diff --git a/neutron/privileged/agent/linux/ip_lib.py b/neutron/privileged/agent/linux/ip_lib.py
  2. index 6e8d98c824..09b4a21d37 100644
  3. --- a/neutron/privileged/agent/linux/ip_lib.py
  4. +++ b/neutron/privileged/agent/linux/ip_lib.py
  5. @@ -522,6 +522,7 @@ def make_serializable(value):
  6. def _ensure_string(value):
  7. # NOTE(ralonsoh): once PY2 is deprecated, the str() conversion will be
  8. # no needed and six.binary_type --> bytes.
  9. + return value.decode() if isinstance(value, bytes) else value
  10. return (str(value.decode('utf-8'))
  11. if isinstance(value, six.binary_type) else value)
Advertisement
Add Comment
Please, Sign In to add comment