Skip to content

Commit 489c3bd

Browse files
Fix lint issues
1 parent ea3504f commit 489c3bd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/release/kubectl-mongodb/python/build_kubectl_plugin.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
GORELEASER_DIST_DIR = "dist"
2121

22+
2223
def run_goreleaser():
2324
try:
2425
command = ["./goreleaser", "build", "--snapshot", "--clean", "--skip", "post-hooks"]
@@ -68,7 +69,7 @@ def upload_artifacts_to_s3(s3_bucket: str, version: str):
6869
for subdir in os.listdir(GORELEASER_DIST_DIR):
6970
subdir_path = os.path.join(GORELEASER_DIST_DIR, subdir)
7071
if not os.path.isdir(subdir_path):
71-
continue # not a directory
72+
continue # not a directory
7273

7374
for filename in os.listdir(subdir_path):
7475
local_file_path = os.path.join(subdir_path, filename)
@@ -102,13 +103,14 @@ def s3_and_local_plugin_path(version: str) -> dict[str, str]:
102103
local_common_path = "docker/mongodb-kubernetes-tests"
103104
# path in s3 : local path
104105
return {
105-
f"{s3_common_path}/kubectl-mongodb_linux_amd64_v1/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_amd64",
106-
f"{s3_common_path}/kubectl-mongodb_linux_arm64/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_arm64",
107-
f"{s3_common_path}/kubectl-mongodb_linux_ppc64le/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_ppc64le",
108-
f"{s3_common_path}/kubectl-mongodb_linux_s390x/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_s390x",
106+
f"{s3_common_path}/kubectl-mongodb_linux_amd64_v1/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_amd64",
107+
f"{s3_common_path}/kubectl-mongodb_linux_arm64/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_arm64",
108+
f"{s3_common_path}/kubectl-mongodb_linux_ppc64le/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_ppc64le",
109+
f"{s3_common_path}/kubectl-mongodb_linux_s390x/kubectl-mongodb": f"{local_common_path}/multi-cluster-kube-config-creator_s390x",
109110
}
110111

111-
# download_plugin_for_tests_image downloads the plugin for all the architectures and places them to the paths configured in
112+
113+
# download_plugin_for_tests_image downloads the plugin for all the architectures and places them to the paths configured in
112114
# s3_and_local_plugin_path
113115
def download_plugin_for_tests_image(build_scenario: BuildScenario, s3_bucket: str, version: str):
114116
try:

0 commit comments

Comments
 (0)