can't get actionplan list if global efficacy unit is null

Bug #1749463 reported by Alexander Chadin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Undecided
Unassigned

Bug Description

Got this error:
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3.4/site-packages/watcherclient/common/command.py", line 38, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.4/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3.4/site-packages/watcherclient/v1/action_plan_shell.py", line 192, in take_action
    action_plan.global_efficacy, parsed_args)
  File "/usr/lib/python3.4/site-packages/watcherclient/v1/action_plan_shell.py", line 155, in _format_global_efficacy
    formatted_global_efficacy = format_global_efficacy(global_efficacy)
  File "/usr/lib/python3.4/site-packages/watcherclient/v1/action_plan_shell.py", line 37, in format_global_efficacy
    formatted_global_eff[eff_name] = eff.get('value')
UnboundLocalError: local variable 'eff_name' referenced before assignment

This error raises only if 'unit' attribute of global efficacy is null.

Changed in watcher:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-watcherclient 1.7.0

This issue was fixed in the openstack/python-watcherclient 1.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.