Skip to content
This repository was archived by the owner on Aug 28, 2023. It is now read-only.

Commit 1f5014f

Browse files
authored
Move .lower() outside of f-string
1 parent ab233a0 commit 1f5014f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121

2222
def download(version=TERRAFORM_VERSION):
23-
platform_name = platform.system()
23+
platform_name = platform.system().lower()
2424
base_url = f"https://releases.hashicorp.com/terraform/{version}"
25-
file_name = f"terraform_{version}_{platform_name.lower()}_amd64.zip"
25+
file_name = f"terraform_{version}_{platform_name}_amd64.zip"
2626
download_url = f"{base_url}/{file_name}"
2727

2828
download_directory = "downloads"

0 commit comments

Comments
 (0)