The openstack clients return unicode strings as ressource names.
In python2.7, we need to use unicode encoding when dealing with string
formatting otherwise it is treated as python2 str and we try to cast
a unicode string into an str.
In python 3 prefixing a string with u has no effect and is supported
and considered as a python3 str which are natively unicode strings.
Reviewed: https:/ /review. openstack. org/404286 /git.openstack. org/cgit/ openstack/ ospurge/ commit/ ?id=712bb2bce5a cb01063bc186c30 4ca0e1b377bd16
Committed: https:/
Submitter: Jenkins
Branch: master
commit 712bb2bce5acb01 063bc186c304ca0 e1b377bd16
Author: zarrouk <email address hidden>
Date: Tue Nov 29 16:40:03 2016 +0100
Use unicode formatting
The openstack clients return unicode strings as ressource names.
In python2.7, we need to use unicode encoding when dealing with string
formatting otherwise it is treated as python2 str and we try to cast
a unicode string into an str.
In python 3 prefixing a string with u has no effect and is supported
and considered as a python3 str which are natively unicode strings.
Change-Id: Id77ed2f28fd206 b900a0e273fece2 44517e55505
Closes-Bug: #1645761