User creation: queues should be optional (agent)

Description

wazo-docker-confd-1 | 2023-02-22T15:12:23.288407370Z Traceback (most recent call last): wazo-docker-confd-1 | 2023-02-22T15:12:23.288411470Z File "/opt/venv/lib/python3.7/site-packages/wazo_confd-0.1-py3.7.egg/wazo_confd/helpers/common.py", line 28, in wrapper wazo-docker-confd-1 | 2023-02-22T15:12:23.288415849Z return func(*args, **kwargs) wazo-docker-confd-1 | 2023-02-22T15:12:23.288434191Z File "/opt/venv/lib/python3.7/site-packages/xivo/auth_verifier.py", line 226, in wrapper wazo-docker-confd-1 | 2023-02-22T15:12:23.288438487Z return func(*args, **kwargs) wazo-docker-confd-1 | 2023-02-22T15:12:23.288442060Z File "/opt/venv/lib/python3.7/site-packages/xivo/auth_verifier.py", line 191, in wrapper wazo-docker-confd-1 | 2023-02-22T15:12:23.288445712Z return func(*args, **kwargs) wazo-docker-confd-1 | 2023-02-22T15:12:23.288449020Z File "/opt/venv/lib/python3.7/site-packages/wazo_confd-0.1-py3.7.egg/wazo_confd/plugins/user/resource.py", line 39, in post wazo-docker-confd-1 | 2023-02-22T15:12:23.288452837Z request.get_json(), tenant.uuid, tenant_uuids wazo-docker-confd-1 | 2023-02-22T15:12:23.288456595Z File "/opt/venv/lib/python3.7/site-packages/wazo_confd-0.1-py3.7.egg/wazo_confd/plugins/user/middleware.py", line 213, in create wazo-docker-confd-1 | 2023-02-22T15:12:23.288460681Z queues = agent['queues'] wazo-docker-confd-1 | 2023-02-22T15:12:23.288464016Z KeyError: 'queues'

Queues must be optional

Zendesk Ticket IDs

None

Activity

Show:

Nabil Ben Youssef March 8, 2023 at 9:12 PM

waiting https://github.com/wazo-platform/wazo-confd/pull/378 to be merged before reviewing

Done

Details

Priority

Assignee

Reporter

Approvers

Nabil Ben Youssef

Fix versions

Sprint

Zendesk Support

Created February 23, 2023 at 1:16 PM
Updated March 15, 2023 at 7:52 PM
Resolved March 13, 2023 at 5:31 PM

Flag notifications