Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Merge "Add API to get environments"
[yardstick.git]
/
api
/
database
/
v2
/
handlers.py
diff --git
a/api/database/v2/handlers.py
b/api/database/v2/handlers.py
index
eb73281
..
095ad72
100644
(file)
--- a/
api/database/v2/handlers.py
+++ b/
api/database/v2/handlers.py
@@
-24,6
+24,9
@@
class V2EnvironmentHandler(object):
db_session.commit()
return environment
+ def list_all(self):
+ return V2Environment.query.all()
+
def get_by_uuid(self, uuid):
environment = V2Environment.query.filter_by(uuid=uuid).first()
if not environment: