UI sending websocket interface tags in a dictionary

Bug #1845558 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Unassigned

Bug Description

MAAS has the ability to add a tag to the interface using the API. This information is sent over the websocket although it is not currently displayed in the UI. Tags are sent as a list however the UI is returning them as a dictionary when modifying an interface. This causes the InterfaceForm to raise the exception "'dict' object has no attribute 'split'" and the interface is not changed.

Tags are sent from the region to the UI
['tag-1', 'tag-2', 'tag-3']

Tags are incorrectly sent from the UI to the region as
[{'text': 'tag-1'}, {'text': 'tag-2'}, {'text': 'tag-3'}]

Reproduction 1:
Run MAAS with sampledata and try to edit an interface

Reproduction 2:
1. In a live environment add a tag
   maas $PROFILE interface add-tag $SYSTEM_ID $INTERFACE_ID tag=foo
2. Try to edit the interface in the UI

Tags: ui
Changed in maas:
assignee: nobody → Steve Rydz (steverydz)
Steve Rydz (steverydz)
Changed in maas:
status: New → Fix Committed
Steve Rydz (steverydz)
Changed in maas:
assignee: Steve Rydz (steverydz) → nobody
Changed in maas:
status: Fix Committed → Fix Released
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.