Skip to content

Commit f969d10

Browse files
Run precommit
1 parent 23faa03 commit f969d10

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

api/v1/search/zz_generated.deepcopy.go

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/release/kubectl_mongodb/python/promote_kubectl_plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,14 @@ def download_artifacts_from_s3(release_version: str, commit_sha: str, staging_s3
242242
logger.info("All the artifacts have been downloaded successfully.")
243243
return True
244244

245+
245246
def set_permissions_filter(tarinfo):
246247
if tarinfo.name == "kubectl-mongodb":
247248
# This is the binary, make it executable: rwxr-xr-x
248249
tarinfo.mode = 0o755
249250
return tarinfo
250251

252+
251253
# create_tarballs creates `.tar.gz` archives for the artifacts that before promoting them.
252254
def create_tarballs():
253255
logger.info(f"Creating archives for subdirectories in {LOCAL_ARTIFACTS_DIR}")
@@ -268,10 +270,8 @@ def create_tarballs():
268270
# Add just the binary (kubectl-mongodb_None_linux_s390x/kubectl-mongodb) to the tar
269271
# instead of adding the dir.
270272
# filter is passed to make the binary file executable
271-
tar.add(full_item_path,
272-
arcname=item_name,
273-
filter=set_permissions_filter)
274-
273+
tar.add(full_item_path, arcname=item_name, filter=set_permissions_filter)
274+
275275
full_archive_path = os.path.join(original_cwd, LOCAL_ARTIFACTS_DIR, archive_name)
276276
logger.info(f"Successfully created archive at {full_archive_path}")
277277
created_archives.append(full_archive_path)

0 commit comments

Comments
 (0)