Magnum show cmds display dictionaries with unicode u chars

Bug #1498071 reported by Dane LeBlanc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Invalid
Low
Unassigned

Bug Description

When a magnum resource has an attribute that is implemented as a dictionary, and that dictionary
contains either unicode keys or unicode values, then Magnum show commands display the
dictionary keys/values including a preceding 'u' character. For example, the output of the
'magnum baymodel-show <baymodel>' command includes this line:

| labels | {u'flannel_network_subnetlen': u'26', u'flannel_network_cidr': u'10.101.0.0/16', u'flannel_use_vxlan': u'true'} |

The 'u' characters should not be displayed by the Magnum show commands in this scenario.

Dane LeBlanc (leblancd)
Changed in magnum:
assignee: nobody → Dane LeBlanc (leblancd)
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
Changed in magnum:
assignee: Dane LeBlanc (leblancd) → nobody
Changed in magnum:
importance: Undecided → Low
rajiv (rajiv-kumar)
Changed in magnum:
assignee: nobody → rajiv (rajiv-kumar)
Revision history for this message
rajiv (rajiv-kumar) wrote :

This Bug is not reproducible, I installed magnum with latest code and assigned labels. Output of "magnum baymodel-show <uuid>" does not contain unicode characters for baymodel. Therefore marking it invalid.

Changed in magnum:
status: New → Invalid
assignee: rajiv (rajiv-kumar) → nobody
Revision history for this message
Dane LeBlanc (leblancd) wrote :

@rajiv: This bug was fixed with this commit: https://review.openstack.org/#/c/226076/
Not sure why the review wasn't linked to this launchpad bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.