diff options
| author | Nir Magnezi <nmagnezi@redhat.com> | 2017-01-09 12:31:47 +0200 |
|---|---|---|
| committer | Nir Magnezi <nmagnezi@redhat.com> | 2017-01-09 16:44:08 +0200 |
| commit | 142c5faae38c0619d218e0113644d6fa7bea76a8 (patch) | |
| tree | 92c5eca5596bc497bb4a4152de8c60184cbb2905 /openstackclient/tests/unit | |
| parent | 1957690754961aed8bf9c7894e3ab140a9f2c0b9 (diff) | |
| download | python-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.py | 3 |
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 |
