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
Fix firewalld module failing on missing protocol. #50242
Merged
maxamillion
merged 1 commit into
ansible:devel
from
ericzolf:ericzolf-fix-firewalld-port-py3
Jan 2, 2019
Merged
Fix firewalld module failing on missing protocol. #50242
maxamillion
merged 1 commit into
ansible:devel
from
ericzolf:ericzolf-fix-firewalld-port-py3
Jan 2, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Under Python 3.7 at least, the split of the port field fails ungracefully if there is no slash. The fix also addresses the case of an empty protocol after the slash.
ansibot
added
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
community_review
In order to be merged, this PR must follow the community review workflow.
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
python3
support:community
This issue/PR relates to code supported by the Ansible community.
traceback
This issue/PR includes a traceback.
labels
Dec 21, 2018
👍 (but I have no review powers here) |
ansibot
added
the
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
label
Dec 29, 2018
@ericzolf thank you for the fix! |
maxamillion
pushed a commit
to maxamillion/ansible
that referenced
this pull request
Jan 2, 2019
Under Python 3.7 at least, the split of the port field fails ungracefully if there is no slash. The fix also addresses the case of an empty protocol after the slash. (cherry picked from commit 69deb73)
maxamillion
added a commit
to maxamillion/ansible
that referenced
this pull request
Jan 2, 2019
Signed-off-by: Adam Miller <admiller@redhat.com>
ansibot
pushed a commit
that referenced
this pull request
Jan 2, 2019
maxamillion
added a commit
to maxamillion/ansible
that referenced
this pull request
Jan 3, 2019
Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit b81a74f)
abadger
pushed a commit
that referenced
this pull request
Jan 7, 2019
* Fix firewalld module failing on missing protocol. (#50242) Under Python 3.7 at least, the split of the port field fails ungracefully if there is no slash. The fix also addresses the case of an empty protocol after the slash. (cherry picked from commit 69deb73) * add changelog for #50242 (#50480) Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit b81a74f)
kbreit
pushed a commit
to kbreit/ansible
that referenced
this pull request
Jan 11, 2019
Under Python 3.7 at least, the split of the port field fails ungracefully if there is no slash. The fix also addresses the case of an empty protocol after the slash.
kbreit
pushed a commit
to kbreit/ansible
that referenced
this pull request
Jan 11, 2019
Signed-off-by: Adam Miller <admiller@redhat.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
community_review
In order to be merged, this PR must follow the community review workflow.
module
This issue/PR relates to a module.
python3
stale_ci
This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested.
support:community
This issue/PR relates to code supported by the Ansible community.
traceback
This issue/PR includes a traceback.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
Under Python 3.7 at least, the split of the port field fails
ungracefully if there is no slash. The fix also addresses the
case of an empty protocol after the slash.
ISSUE TYPE
COMPONENT NAME
firewalld
ADDITIONAL INFORMATION
if giving the port as
12345
(without e.g./tcp
) the following error would be spit out:The fix also makes sure that an empty protocol e.g.
12345/
isn't accepted anymore.