diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-07-14 22:47:00 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-07-15 17:16:59 +0100 |
commit | 755dc86c41392c7065440d147258befbbeb5c1ee (patch) | |
tree | 9b1901ebc25459a0f1801d185a6f03756d73e6d0 /static | |
parent | c93409d4493f1374d626f21f9f68def3a88f09a6 (diff) | |
download | lorry-controller-755dc86c41392c7065440d147258befbbeb5c1ee.tar.gz |
givemejob: Stop synthesising host information when it's missing
Any lorry in the database should have been either:
1. Generated based on a 'trove' or 'gitlab' section, with
'from_host' set to the Upstream Host name.
2. Read from a lorry referred to in a 'lorries' section, with
'from_host' set to an empty string.
So this error case indicates a dangling reference in the database.
The current schema does not use foreign keys so this could happen,
but it's reasonable to just give up and return empty metadata.
Diffstat (limited to 'static')
0 files changed, 0 insertions, 0 deletions