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

Correct "ports" keyword for container create #122

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

jwhonce
Copy link
Member

@jwhonce jwhonce commented Jul 15, 2021

  • Corrected for field
  • Added tests to ensure field is used correctly

Signed-off-by: Jhon Honce jhonce@redhat.com

* Corrected for field
* Added tests to ensure field is used correctly

Signed-off-by: Jhon Honce <jhonce@redhat.com>
@jwhonce jwhonce added the bug Something isn't working label Jul 15, 2021
@jwhonce jwhonce self-assigned this Jul 15, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 15, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jwhonce

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jwhonce
Copy link
Member Author

jwhonce commented Jul 15, 2021

@containers/podman-maintainers @mwhahaha PTAL

@jwhonce jwhonce changed the title Correct "ports" keywork for container create Correct "ports" keyword for container create Jul 15, 2021
@JacobCallahan
Copy link
Contributor

When testing locally, the result looks great!

cont = pman.containers.create("postgres", ports={"22":1337, "23":1445})
cont.ports == {
   '22/tcp': [{'HostIp': '', 'HostPort': '1337'}],
   '23/tcp': [{'HostIp': '', 'HostPort': '1445'}]
}

@rhatdan
Copy link
Member

rhatdan commented Jul 15, 2021

/lgtm

@TomSweeneyRedHat
Copy link
Member

LGTM

@rhatdan rhatdan merged commit 6634743 into containers:main Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved bug Something isn't working lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants