mirror of
https://github.com/pi-hole/FTL.git
synced 2026-07-03 20:15:45 +01:00
Add POST /api/teleporter to upload and install backed up configuration
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -58,9 +58,9 @@ if __name__ == "__main__":
|
||||
verifyer = ResponseVerifyer(ftl, openapi)
|
||||
errors = verifyer.verify_endpoint(path)
|
||||
if len(errors) == 0:
|
||||
print(" " + path + ": OK")
|
||||
print(" " + path + " (" + verifyer.auth_method + " auth): OK")
|
||||
else:
|
||||
print(" " + path + ":")
|
||||
print(" " + path + " (" + verifyer.auth_method + " auth):")
|
||||
for error in errors:
|
||||
print(" - " + error)
|
||||
errs[2] += len(errors)
|
||||
@@ -79,6 +79,5 @@ if __name__ == "__main__":
|
||||
exit(1)
|
||||
|
||||
# If there are no errors, exit with success
|
||||
# (this is important for the CI)
|
||||
print("Everything okay!")
|
||||
exit(0)
|
||||
|
||||
Reference in New Issue
Block a user