summaryrefslogtreecommitdiff
path: root/iotronic/db/sqlalchemy/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'iotronic/db/sqlalchemy/api.py')
-rw-r--r--iotronic/db/sqlalchemy/api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/iotronic/db/sqlalchemy/api.py b/iotronic/db/sqlalchemy/api.py
index 275f674..76f9d80 100644
--- a/iotronic/db/sqlalchemy/api.py
+++ b/iotronic/db/sqlalchemy/api.py
@@ -764,14 +764,14 @@ class Connection(api.Connection):
764 764
765 # EXPOSED SERVICE api 765 # EXPOSED SERVICE api
766 766
767 def get_exposed_service_by_board_uuid(self, board_uuid): 767 def get_exposed_services_by_board_uuid(self, board_uuid):
768 query = model_query( 768 query = model_query(
769 models.ExposedService).filter_by( 769 models.ExposedService).filter_by(
770 board_uuid=board_uuid) 770 board_uuid=board_uuid)
771 try: 771 try:
772 return query.one() 772 return query.all()
773 except NoResultFound: 773 except NoResultFound:
774 raise exception.ExposedServiceNotFound() 774 raise exception.NoExposedServices(uuid=board_uuid)
775 775
776 def create_exposed_service(self, values): 776 def create_exposed_service(self, values):
777 # ensure defaults are present for new services 777 # ensure defaults are present for new services