-
Notifications
You must be signed in to change notification settings - Fork 153
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
allow-firewalld-take-multiple-input #160
base: main
Are you sure you want to change the base?
allow-firewalld-take-multiple-input #160
Conversation
I just dont see why the check failed - the error logs does not have it so I dont know what need to improve. Please advise. |
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.
Thanks for creating this PR!
Also according to https://docs.ansible.com/ansible/latest/community/development_process.html#creating-a-changelog-fragment "The file name should include the PR number and a description of the change."
So it should be something like 160-firewalld_multiple_input_values.yml
.
Thanks, I did all you said and the check still failed! |
@sunshine69 That's odd, I will investigate and ask others too later today. |
Thank you for your contribution, @sunshine69! Sanity test fail on the pep8 check: https://51388069b44786266e9b-30750299912a16616e1da61098cd5e85.ssl.cf1.rackcdn.com/160/1d9f2183434e5a375ae4ce2a13329c72bd6c8228/check/ansible-test-sanity-docker/8c8f4de/job-output.html#l1300 As for the changelog fragment check, it seems that it only looks for the changelog addition in the last commit. So I would advise you to fix the pep8 issues, squash all your commits into one, and then force-push to your branch. |
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.
I went through the code and I started to wonder that maybe it would be better to convert the type: str
to type: list, elements: str
and then let Ansible handle the conversion.
This change would allow the user to specify:
- a single string like now and Ansible will convert this to a list with a single element,
- a list of strings, and
- a comma-searated string that Ansible will convert to list.
Wonder the benefit of this approach?
But it might be intuitive, as first user will naturally think the input should be a list so naturally it should be a list. Don't know, but I think it is good that way, I will implement it soon. |
1d9f218
to
e82c0a9
Compare
Did the squash and other stuff, but I ran pep8 locally and did not see any errors like |
fecd1fb
to
4666670
Compare
The currentl firewalld module does not take multiple values such as `source` or `interface`, etc.. There are many cases that we need to pass multi volume to the module rather than flatening the input so I implement it in this PR. This change is backward compatible, that is the behaviour wont change after this change, an existing user uses single value will work as is.
4666670
to
469234d
Compare
OK Now I got stuck then. Changelog is there but it still complains that changelog does not exists. Maybe you guys need to fix the checking logic somehow - and fixing the rest of the pep8 error. |
Can someone please look into the build errors please? |
@sunshine69 I looking into the error. |
@sunshine69 #168 needs to be merged before this. I re-triggered CI, will ping you once that is merged. |
@sunshine69 @aminvakil @tadeboro @Akasurde |
Hello! Apologies for the lag time on this, if this could get some examples and test cases as mentioned in the last comment then I would gladly merge. Thank you! |
The currentl firewalld module does not take multiple values such as
source
orinterface
, etc..There are many cases that we need to pass multi volume to the module
rather than flatening the input so I implement it in this PR.
This change is backward compatible, that is the behaviour wont change after this change,
an existing user uses single value will work as is.
SUMMARY
ISSUE TYPE
COMPONENT NAME
firewalld
ADDITIONAL INFORMATION