Return correct object of the board in boards_in_fleet.
Change-Id: Ib5fbc23f4daaf018ca56dc518c61705d97125625
This commit is contained in:
parent
ea8c81c502
commit
f1b1f86642
@ -16,6 +16,7 @@ from iotronicclient.common import base
|
|||||||
from iotronicclient.common.i18n import _
|
from iotronicclient.common.i18n import _
|
||||||
from iotronicclient.common import utils
|
from iotronicclient.common import utils
|
||||||
from iotronicclient import exc
|
from iotronicclient import exc
|
||||||
|
from iotronicclient.v1.board import Board
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
_DEFAULT_POLL_INTERVAL = 2
|
_DEFAULT_POLL_INTERVAL = 2
|
||||||
@ -155,7 +156,8 @@ class FleetManager(base.CreateManager):
|
|||||||
path += '?' + '&'.join(filters)
|
path += '?' + '&'.join(filters)
|
||||||
|
|
||||||
if limit is None:
|
if limit is None:
|
||||||
return self._list(self._path(path), "boards")
|
return self._list(self._path(path), "boards", obj_class=Board)
|
||||||
else:
|
else:
|
||||||
return self._list_pagination(self._path(path), "boards",
|
return self._list_pagination(self._path(path), "boards",
|
||||||
|
obj_class=Board,
|
||||||
limit=limit)
|
limit=limit)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user