From 71d0f6c66a5a793e3c4422203b39f73495a4fc86 Mon Sep 17 00:00:00 2001 From: jonnary Date: Mon, 29 Aug 2016 10:52:28 +0800 Subject: [PATCH] Fix "openstack cluster policy binding list " Before this patch,"openstack cluster policy binding list " will list nothing. Change-Id: Ife35efd28af8207d6dfbc077dd70550c76ab565d --- senlinclient/v1/cluster_policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/senlinclient/v1/cluster_policy.py b/senlinclient/v1/cluster_policy.py index b950526f..8fd3dadb 100644 --- a/senlinclient/v1/cluster_policy.py +++ b/senlinclient/v1/cluster_policy.py @@ -80,7 +80,7 @@ class ClusterPolicyList(command.Lister): } return ( columns, - (utils.get_item_properties(p.to_dict(), columns, + (utils.get_item_properties(p, columns, formatters=formatters) for p in policies) )