diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-05-06 22:45:42 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-06-01 15:26:47 +0100 |
commit | 14eac038d2fa7ac4845135a827ca8c2f2bab559c (patch) | |
tree | 516737a7c9f8bc176fee1f5e3b4ec4dd28ce9550 /ARCH | |
parent | 5963f66a434d49a4a6e8dfc02cfe256c88d1e1e6 (diff) | |
download | lorry-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-- | ARCH | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |