Skip to content

Commit

Permalink
Skip resources with no providers in STA intralink (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben authored Aug 20, 2024
1 parent 08876b5 commit 067b158
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pygeoapi/provider/sensorthings.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ def __init__(self, provider_def):

for (name, rs) in CONFIG['resources'].items():
pvs = rs.get('providers')

if pvs is None:
LOGGER.debug(f'Skipping collection: {name}')
continue

p = get_provider_default(pvs)
e = p.get('entity') or self._get_entity(p['data'])
if any([
Expand Down

0 comments on commit 067b158

Please sign in to comment.