summaryrefslogtreecommitdiff
path: root/ARCH
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-05-06 22:45:42 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-06-01 15:26:47 +0100
commit14eac038d2fa7ac4845135a827ca8c2f2bab559c (patch)
tree516737a7c9f8bc176fee1f5e3b4ec4dd28ce9550 /ARCH
parent5963f66a434d49a4a6e8dfc02cfe256c88d1e1e6 (diff)
downloadlorry-controller-14eac038d2fa7ac4845135a827ca8c2f2bab559c.tar.gz
Update terminology for hosts in internal APIs and web templates
This is intended to replace all uses of "Trove" that should really be "Downstream Host" or "Upstream Host", except in the database schema and the REST API (which will probably change later). * ARCH: Update example code to reflect API name change * yarns.webapp: Update test descriptions and uses of internal APIs * units: Update and rename the ls-troves units (although they still use the ls-troves endpoint for now) Some references that really are specific to Trove integration are retained. Related to #3.
Diffstat (limited to 'ARCH')
-rw-r--r--ARCH6
1 files changed, 3 insertions, 3 deletions
diff --git a/ARCH b/ARCH
index de1db0c..152ae33 100644
--- a/ARCH
+++ b/ARCH
@@ -488,9 +488,9 @@ statements to provide locking. To access STATEDB with locking, use
code such as this:
with self.open_statedb() as statedb:
- troves = statedb.get_troves()
- for trove in troves:
- statedb.remove_trove(troves)
+ hosts = statedb.get_hosts()
+ for host in hosts:
+ statedb.remove_host(hosts)
The code executed by the `with` statement is run under lock, and the
lock gets released automatically even if there is an exception.