Skip to content

Commit b5f1f0e

Browse files
author
Malte Münch
authored
Merge pull request #37 from gardenlinux/fix-lint
Fix lint and tests
2 parents f5eb8ec + 44660d9 commit b5f1f0e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ cython_debug/
161161
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
162162
# and can be added to the global gitignore or merged into this file. For a more nuclear
163163
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
164-
#.idea/
164+
.idea/

src/python_gardenlinux_lib/features/parse_features.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ def get_gardenlinux_commit(gardenlinux_root: str, limit: Optional[int] = None) -
4343
if commit_str.count("\n") > 1:
4444
raise ValueError(f"{commit_str} contains multiple lines")
4545

46-
47-
4846
if limit:
4947
if limit >= len(commit_str):
5048
return commit_str

src/python_gardenlinux_lib/oras/registry.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,13 @@ def push_image_manifest(
602602
logger.debug(layer)
603603
logger.debug("---------")
604604
logger.debug(f"Currentl total size: {total_size}")
605-
logger.debug(f"File Size of {file_path}: {os.path.get_size()}")
606-
logger.debug(f"File get modification time of {file_path}: {os.path.getmtime()}")
607-
logger.debug(f"File get creation time of {file_path}: {os.path.getctime()}")
605+
logger.debug(f"File Size of {file_path}: {os.path.getsize(file_path)}")
606+
logger.debug(
607+
f"File get modification time of {file_path}: {os.path.getmtime(file_path)}"
608+
)
609+
logger.debug(
610+
f"File get creation time of {file_path}: {os.path.getctime(file_path)}"
611+
)
608612
logger.debug("---------")
609613
response = self.upload_blob(file_path, self.container, layer)
610614
self._check_200_response(response)

0 commit comments

Comments
 (0)