diff options
author | 2021-07-19 15:55:10 +0100 | |
---|---|---|
committer | 2021-07-19 15:55:10 +0100 | |
commit | 6d361620819bfdaf05036049110382bc2ae8fc9b (patch) | |
tree | db4503eb2c3a298669b3bfcb2e627fcbd85c443c /arthur/apis/cloudflare/zones.py | |
parent | Lint all code with black (diff) |
Fix linting issues
Diffstat (limited to 'arthur/apis/cloudflare/zones.py')
-rw-r--r-- | arthur/apis/cloudflare/zones.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arthur/apis/cloudflare/zones.py b/arthur/apis/cloudflare/zones.py index e2955f7..a5a81d8 100644 --- a/arthur/apis/cloudflare/zones.py +++ b/arthur/apis/cloudflare/zones.py @@ -10,7 +10,7 @@ CF_TOKEN = CONFIG.cloudflare_token async def list_zones(zone_name: Optional[str] = None) -> dict[str, str]: - endpoint = f"https://api.cloudflare.com/client/v4/zones" + endpoint = "https://api.cloudflare.com/client/v4/zones" request_headers = {"X-Auth-User-Service-Key": CF_TOKEN} if zone_name is not None: @@ -27,7 +27,7 @@ async def list_zones(zone_name: Optional[str] = None) -> dict[str, str]: async def purge_zone(zone_identifier: str) -> dict: - endpoint = f"https://api.cloudflare.com/client/v4/zones/{zone_identifier}/purge_cache?purge_everything=true" + endpoint = f"https://api.cloudflare.com/client/v4/zones/{zone_identifier}/purge_cache?purge_everything=true" # noqa: E501 request_headers = {"X-Auth-User-Service-Key": CF_TOKEN} async with aiohttp.ClientSession() as session: |