TypeError if no input_parameters added

Bug #1647927 reported by Hidekazu Nakamura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Medium
Hidekazu Nakamura

Bug Description

By calling solution.add_action with no input_parameters, TypeError: 'NoneType' object does not support item assignment was occurred.

Stacktrace is the following:

2016-12-07 12:22:11.820 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher/watcher/decision_engine/solution/default.py", line 45, in add_action
2016-12-07 12:22:11.820 TRACE watcher.decision_engine.audit.base input_parameters[baction.BaseAction.RESOURCE_ID] = resource_id
2016-12-07 12:22:11.820 TRACE watcher.decision_engine.audit.base TypeError: 'NoneType' object does not support item assignment

Changed in watcher:
milestone: none → ocata-3
tags: added: low-hanging-fruit
Changed in watcher:
importance: Undecided → Medium
status: New → Confirmed
Changed in watcher:
assignee: nobody → Hidekazu Nakamura (nakamura-h)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (master)

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

Changed in watcher:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

Reviewed: https://review.openstack.org/415096
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=0adc7d91e6ce783519e77fdd6b93c85a87c924a3
Submitter: Jenkins
Branch: master

commit 0adc7d91e6ce783519e77fdd6b93c85a87c924a3
Author: Hidekazu Nakamura <email address hidden>
Date: Tue Dec 27 13:49:54 2016 +0900

    Fix TypeError if no input_parameters added

    By calling solution.add_action with no input_parameters, TypeError:
    'NoneType' object does not support item assignment was occurred.
    This patch fix it.

    Change-Id: Ia2ad0c18bc20468ca73c0ab70495fac2c90e0640
    Closes-Bug: #1647927

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

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