summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
diff options
context:
space:
mode:
authorNir Magnezi <nmagnezi@redhat.com>2017-01-09 12:31:47 +0200
committerNir Magnezi <nmagnezi@redhat.com>2017-01-09 16:44:08 +0200
commit142c5faae38c0619d218e0113644d6fa7bea76a8 (patch)
tree92c5eca5596bc497bb4a4152de8c60184cbb2905 /openstackclient/tests/unit
parent1957690754961aed8bf9c7894e3ab140a9f2c0b9 (diff)
downloadpython-openstackclient-142c5faae38c0619d218e0113644d6fa7bea76a8.tar.gz
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
Diffstat (limited to 'openstackclient/tests/unit')
-rw-r--r--openstackclient/tests/unit/fakes.py3
1 files changed, 3 insertions, 0 deletions
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