From 79880c2dffc1d98e168015fa9dd6c14d8fab2708 Mon Sep 17 00:00:00 2001 From: Alexander Chadin Date: Mon, 18 Dec 2017 15:45:30 +0300 Subject: [PATCH] Fix watcher actionplan list command This patch set replaces itervalues() method with values() to get py3.* compatibility. Closes-Bug: #1738772 Change-Id: Ie13d15d6f407b08ba087168ac647669c0df2c30a --- watcherclient/v1/action_plan_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcherclient/v1/action_plan_shell.py b/watcherclient/v1/action_plan_shell.py index 4ee5bd6..6de9a4c 100644 --- a/watcherclient/v1/action_plan_shell.py +++ b/watcherclient/v1/action_plan_shell.py @@ -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, )