Fix watcher actionplan list command

This patch set replaces itervalues() method with values()
to get py3.* compatibility.

Closes-Bug: #1738772
Change-Id: Ie13d15d6f407b08ba087168ac647669c0df2c30a
This commit is contained in:
Alexander Chadin
2017-12-18 15:45:30 +03:00
parent bf706365ea
commit 79880c2dff

View File

@@ -157,7 +157,7 @@ class ListActionPlan(command.Lister):
yaml_format.YAMLFormatter().emit_one(
column_names=list(resource.capitalize()
for resource in formatted_global_efficacy),
data=[value for value in formatted_global_efficacy.itervalues()],
data=[value for value in formatted_global_efficacy.values()],
stdout=out,
parsed_args=parsed_args,
)