From f1b1f866422beb2fdaf417cf8a5bffb83ada3434 Mon Sep 17 00:00:00 2001 From: Fabio Verboso Date: Thu, 4 Oct 2018 17:35:42 +0200 Subject: [PATCH] Return correct object of the board in boards_in_fleet. Change-Id: Ib5fbc23f4daaf018ca56dc518c61705d97125625 --- iotronicclient/v1/fleet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iotronicclient/v1/fleet.py b/iotronicclient/v1/fleet.py index dadbe86..a5b0b25 100644 --- a/iotronicclient/v1/fleet.py +++ b/iotronicclient/v1/fleet.py @@ -16,6 +16,7 @@ from iotronicclient.common import base from iotronicclient.common.i18n import _ from iotronicclient.common import utils from iotronicclient import exc +from iotronicclient.v1.board import Board LOG = logging.getLogger(__name__) _DEFAULT_POLL_INTERVAL = 2 @@ -155,7 +156,8 @@ class FleetManager(base.CreateManager): path += '?' + '&'.join(filters) if limit is None: - return self._list(self._path(path), "boards") + return self._list(self._path(path), "boards", obj_class=Board) else: return self._list_pagination(self._path(path), "boards", + obj_class=Board, limit=limit)