From c1fd569b76cbfed5144f19e6ee8d968cea5b1a02 Mon Sep 17 00:00:00 2001 From: Alexander Chadin Date: Mon, 13 Aug 2018 17:30:56 +0300 Subject: [PATCH] fix watcher actionplan show command This patch set is intended for Python 3.x support and replace itervalues() method with values(). Change-Id: I6852239d2d6634a4304c87a1694e64479f560de1 Closes-Bug: #1786784 --- 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 5a4586f..2dd9d79 100644 --- a/watcherclient/v1/action_plan_shell.py +++ b/watcherclient/v1/action_plan_shell.py @@ -70,7 +70,7 @@ class ShowActionPlan(command.ShowOne): 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, )