Return correct object of the board in boards_in_fleet.

Change-Id: Ib5fbc23f4daaf018ca56dc518c61705d97125625
changes/93/607993/1 0.3.5
Fabio Verboso 4 years ago
parent ea8c81c502
commit f1b1f86642
  1. 4
      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)

Loading…
Cancel
Save