summaryrefslogtreecommitdiff
path: root/iotronic/objects/exposedservice.py
diff options
context:
space:
mode:
Diffstat (limited to 'iotronic/objects/exposedservice.py')
-rw-r--r--iotronic/objects/exposedservice.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/iotronic/objects/exposedservice.py b/iotronic/objects/exposedservice.py
index 7e96cda..3396545 100644
--- a/iotronic/objects/exposedservice.py
+++ b/iotronic/objects/exposedservice.py
@@ -55,16 +55,20 @@ class ExposedService(base.IotronicObject):
55 55
56 @base.remotable_classmethod 56 @base.remotable_classmethod
57 def get_by_board_uuid(cls, context, board_uuid): 57 def get_by_board_uuid(cls, context, board_uuid):
58 """Find a exposed_service based on uuid and return a Board object. 58 """Return a list of ExposedService objects.
59
60 :param context: Security context.
61 :param limit: maximum number of resources to return in a single result.
62 :param marker: pagination marker for large data sets.
63 :param sort_key: column to sort results by.
64 :param sort_dir: direction to sort. "asc" or "desc".
65 :param filters: Filters to apply.
66 :returns: a list of :class:`ExposedService` object.
59 67
60 :param board_uuid: the uuid of a exposed_service.
61 :returns: a :class:`exposed_service` object.
62 """ 68 """
63 db_exp_service = cls.dbapi.get_exposed_service_by_board_uuid( 69 db_exps = cls.dbapi.get_exposed_services_by_board_uuid(board_uuid)
64 board_uuid) 70 return [ExposedService._from_db_object(cls(context), obj)
65 exp_service = ExposedService._from_db_object(cls(context), 71 for obj in db_exps]
66 db_exp_service)
67 return exp_service
68 72
69 @base.remotable_classmethod 73 @base.remotable_classmethod
70 def get_by_service_uuid(cls, context, service_uuid): 74 def get_by_service_uuid(cls, context, service_uuid):