create audit without audit template error

Bug #1681818 reported by YumengBao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher-dashboard
New
Low
YumengBao

Bug Description

when I was going to create an audit without any audit template, it reports an error like the following:

{"audit_templates": []}
> /home/devstack/watcher-dashboard/watcher_dashboard/content/audits/forms.py(89)handle()
-> params = {'audit_template_uuid': data['audit_template']}
(Pdb) n
KeyError: ('audit_template',)
> /home/devstack/watcher-dashboard/watcher_dashboard/content/audits/forms.py(89)handle()
-> params = {'audit_template_uuid': data['audit_template']}
(Pdb) n
> /home/devstack/watcher-dashboard/watcher_dashboard/content/audits/forms.py(100)handle()
-> except Exception as exc:
(Pdb) data
{'auto_trigger': False, 'audit_type': u'oneshot', 'interval': datetime.timedelta(0, 3600)}
(Pdb) data.get('audit_template')
(Pdb)

YumengBao (yumeng-bao)
Changed in watcher-dashboard:
assignee: nobody → YumengBao (yumeng-bao)
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher-dashboard 1.2.0

This issue was fixed in the openstack/watcher-dashboard 1.2.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.