Skip to content

Conversation

@antonpetrov145
Copy link

Check if include is of type dict or list, throw error if it is dict but 'path' is not the key

Fixes #1320
Signed-off-by: Anton Petrov antonpetrov145@yahoo.com

Check if include is of type dict or list, throw error if it is dict but 'path' is not the key
Fixes containers#1320
Signed-off-by: Anton Petrov <antonpetrov145@yahoo.com>

@overload
def try_int(i: int | str, fallback: int) -> int: ...
def try_int(i: int | str, fallback: int) -> int:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert formatting changes, ruff format will not like this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was because of pre-commit errors

podman_compose.py:65:1: E704 multiple statements on one line (def)
podman_compose.py:69:1: E704 multiple statements on one line (def)
podman_compose.py:276:1: E704 multiple statements on one line (def)
podman_compose.py:280:1: E704 multiple statements on one line (def)
podman_compose.py:284:1: E704 multiple statements on one line (def)

reverted

if include:
files.extend([os.path.join(os.path.dirname(filename), i) for i in include])
# Check if 'include' block is dict or list of strings
for i in include:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add unit or integration test.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extended the include test that is in project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

podman crashes on Fedora 42

2 participants