Can not create receiver

Bug #1706282 reported by lidong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin-dashboard
Fix Released
Undecided
lidong

Bug Description

Reproduce:
1. Cluster/Receivers page
2. Create receiver
3. Fill Name, cluster,Action,type
4. Create receiver
=> mesg: Unable to create new receiver
------------------------------------
In this file https://github.com/openstack/senlin-dashboard/blob/master/senlin_dashboard/cluster/receivers/forms.py
line 90: data is json
but line 93: receiver = senlin.receiver_create(request, data)

In this file https://github.com/openstack/senlin-dashboard/blob/master/senlin_dashboard/api/senlin.py
Line 463: def receiver_create(request, **params):

So I got error:
TypeError: receiver_create() takes exactly 1 argument (2 given)
I tried to change: receiver = senlin.receiver_create(request, data) => receiver = senlin.receiver_create(request, **data)
And receiver now can create via dashboard

lidong (lidong007)
Changed in ironic:
assignee: nobody → lidong (lidong007)
status: New → In Progress
lidong (lidong007)
affects: ironic → senlin-dashboard
Changed in senlin-dashboard:
assignee: lidong (lidong007) → nobody
lidong (lidong007)
Changed in senlin-dashboard:
assignee: nobody → lidong (lidong007)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin-dashboard (master)

Fix proposed to branch: master
Review: https://review.openstack.org/487262

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to senlin-dashboard (master)

Reviewed: https://review.openstack.org/487262
Committed: https://git.openstack.org/cgit/openstack/senlin-dashboard/commit/?id=6982c13e44892fdfe1ba36ab996004c82911f1ce
Submitter: Jenkins
Branch: master

commit 6982c13e44892fdfe1ba36ab996004c82911f1ce
Author: lidong <email address hidden>
Date: Wed Jul 26 10:58:55 2017 +0800

    Can not create receiver

    data is json
    changed:- receiver = senlin.receiver_create(request, data)
    To:- receiver = senlin.receiver_create(request, **data)

    Change-Id: I72da46bfd46b29c7f7070d6cb72989cdbca064c7
    Closes-Bug: Bug #1706282

Changed in senlin-dashboard:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/senlin-dashboard 0.7.0

This issue was fixed in the openstack/senlin-dashboard 0.7.0 release.

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.