Skip to content

Commit

Permalink
Fix paths in check_links
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Sep 3, 2024
1 parent 853ecbe commit 175e18e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rainbow/scripts/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def check_urls_on_keys(file, yaml_list, keys):
yield (file, name, key, url, info)


properties = load_yaml("generic/properties.yml")["properties"]
sensors = load_yaml("generic/sensors.yml")["sensors"]
properties = load_yaml("rainbow/generic/properties.yml")["properties"]
sensors = load_yaml("rainbow/sensors.yml")["sensors"]

issues = [
*check_urls_on_keys("generic/properties.yml", properties, ["sameAs", "seeAlso"]),
*check_urls_on_keys("generic/sensors.yml", properties, ["references"]),
*check_urls_on_keys("rainbow/generic/properties.yml", properties, ["sameAs", "seeAlso"]),
*check_urls_on_keys("rainbow/generic/sensors.yml", properties, ["references"]),
]

if issues:
Expand Down

0 comments on commit 175e18e

Please sign in to comment.