-
Notifications
You must be signed in to change notification settings - Fork 12
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
Enable Transport Prefixes #133
base: main
Are you sure you want to change the base?
Conversation
I note that the format is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my suggestions
@@ -206,13 +206,20 @@ def images(ctx, siteconf, image, podman_args, **site_opts): | |||
@click.argument("podman_args", nargs=-1, type=click.UNPROCESSED) | |||
@click.argument("image") | |||
def pull(ctx, siteconf, image, podman_args, **site_opts): | |||
"""Pulls an image to a local repository and makes a squashed copy.""" | |||
"""Pulls an image to a local repository and makes a squashed copy.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the trailing whitespaces?
|
||
# Check for transport_prefix | ||
if "://" in image: | ||
transport_prefix, image = image.split("://", 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the prefix isn't used, maybe replace this with just
if "://" in image:
image = image.split("://", 1)[0]
# Check for transport_prefix | ||
if "://" in image: | ||
transport_prefix, image = image.split("://", 1) | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop the else section since we don't use the transport prefix
Thanks for the report and proposed fix. This looks good and this seems a reasonable place to handle it. Can you do a few minor things just to keep the flake8 happy. I'll add a few other minor comments and then we can merge it. |
There isn't a
CONTRIB.md
so I have created a fork and PR.Closes #132. TLDR: enables
podman-hpc pull docker://docker.io/library/ubuntu:latest
.I thought that simply adding this after the
podman pull
subprocess would do the job instead of updatingMigrateUtils()
.if proc.returncode == 0:
?podman-hpc
. If you would accept this change / or have feedback do let me know and I'll do some testing.