Skip to content
Snippets Groups Projects

Feature/add validation workflows

Merged Karel van Klink requested to merge feature/add-validation-workflows into develop
All threads resolved!
2 files
+ 35
49
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -102,10 +102,10 @@ class LibreNMSClient:
device = self.get_device(fqdn)
if device["devices"][0]["hostname"] != fqdn:
errors += ["Device hostname in LibreNMS does not match FQDN."]
errors.append("Device hostname in LibreNMS does not match FQDN.")
except HTTPError as e:
if e.response.status_code == HTTPStatus.NOT_FOUND:
errors += ["Device does not exist in LibreNMS."]
errors.append("Device does not exist in LibreNMS.")
else:
raise
Loading