Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pod component to use generic Iterable and Mapping types #599

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix black
LewisGaul committed Aug 31, 2024
commit d1156b7d70d07896a27126e0dca31c2a29922779
4 changes: 1 addition & 3 deletions python_on_whales/components/pod/cli_wrapper.py
Original file line number Diff line number Diff line change
@@ -435,9 +435,7 @@ def create(
full_cmd.add_flag("--no-hosts", no_hosts)
full_cmd.add_simple_arg("--pid", pid)
full_cmd.add_simple_arg("--pod-id-file", pod_id_file)
full_cmd.add_args_iterable(
"-p", [format_port_arg(p) for p in publish]
)
full_cmd.add_args_iterable("-p", [format_port_arg(p) for p in publish])
full_cmd.add_flag("--replace", replace)
full_cmd.add_simple_arg("--restart", restart)
full_cmd.add_args_iterable("--security-opt", security_options)