From 142c5faae38c0619d218e0113644d6fa7bea76a8 Mon Sep 17 00:00:00 2001 From: Nir Magnezi Date: Mon, 9 Jan 2017 12:31:47 +0200 Subject: Fix Octavia gate breakage caused by _get_columns() The above mentioned function tries to extract keys() from an item which is type class. This patch fixes the issue by converting item to dict by using to_dict(). Change-Id: Ida520ae9fe64171d105f486ba06eda127a24547b Closes-Bug: #1654887 --- openstackclient/tests/unit/fakes.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openstackclient/tests/unit') diff --git a/openstackclient/tests/unit/fakes.py b/openstackclient/tests/unit/fakes.py index f7cb5676..ca6b1d31 100644 --- a/openstackclient/tests/unit/fakes.py +++ b/openstackclient/tests/unit/fakes.py @@ -212,6 +212,9 @@ class FakeResource(object): def keys(self): return self._info.keys() + def to_dict(self): + return self._info + @property def info(self): return self._info -- cgit v1.2.1