(config)
| 65 | |
| 66 | @retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000) |
| 67 | def delete_tunnel(config): |
| 68 | credentials_path = config["credentials_file"] |
| 69 | delete_cmd = [config["cloudflared_binary"], "tunnel", "--origincert", config["origincert"], "delete", |
| 70 | "--credentials-file", credentials_path, "-f", config["tunnel"]] |
| 71 | LOGGER.info(f"Deleting tunnel with {delete_cmd}") |
| 72 | subprocess.run(delete_cmd, check=True) |
| 73 | |
| 74 | |
| 75 | @retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000) |