OSpurge fails on ressources with non-ascii caracters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ospurge |
Fix Released
|
Undecided
|
Zarrouk Mohamed |
Bug Description
If a ressource has a non-ascii name (chineese name: 华为技术公司), ospurge faills with following traceback (for this example i created a network with the chineese name):
* Resources type: NeutronNetworks
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec code in run_globals
File "/home/
main()
File "/home/
args.insecure, **data)
File "/home/
res_
File "ospurge/base.py", line 167, in dump
print(
File "/home/
return "network {} (id {})".format(
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
description: | updated |
Fix proposed to branch: master /review. openstack. org/404286
Review: https:/