mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-10-23 05:08:16 +08:00
ci: init ci (#12)
* test.yml init * debug * debug * debug * debug * debug * debug * debug * debug
This commit is contained in:
@@ -63,10 +63,11 @@ if __name__ == "__main__":
|
||||
logging.info("200 ok")
|
||||
exit(0)
|
||||
elif resp.status_code == 403:
|
||||
logging.error("403 forbidden")
|
||||
logging.warning("403 forbidden")
|
||||
logging.info("you may need to register your hostname and uuid")
|
||||
logging.info(f"hostname: {hostname}, uuid: {uuid}")
|
||||
exit(0)
|
||||
else:
|
||||
logging.error("unknown error ")
|
||||
logging.error(f"{resp.status_code}: {resp.text}")
|
||||
logging.info(f"hostname: {hostname}, uuid: {uuid}")
|
||||
exit(1)
|
||||
exit(1)
|
||||
|
||||
Reference in New Issue
Block a user