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

[HELP WANTED] [SEND PR] Recover calling get_playbooks_and_roles #731

Closed
webknjaz opened this issue Apr 9, 2020 · 5 comments
Closed

[HELP WANTED] [SEND PR] Recover calling get_playbooks_and_roles #731

webknjaz opened this issue Apr 9, 2020 · 5 comments
Assignees
Labels
help wanted incomplete Additional work or information is required

Comments

@webknjaz
Copy link
Member

webknjaz commented Apr 9, 2020

Issue Type

  • Bug report

What's up?

While updating #645, I noticed that the call to get_playbooks_and_roles() got removed and it seems like now it's not called from anywhere. It needs to be recovered. I guess it should go to get_config() in the cli module.

mafalb added a commit to mafalb/ansible-collection-copr that referenced this issue Apr 10, 2020
mafalb added a commit to mafalb/ansible-collection-copr that referenced this issue Apr 10, 2020
mafalb added a commit to mafalb/ansible-collection-ansible that referenced this issue Apr 10, 2020
mafalb added a commit to mafalb/ansible-collection-tls that referenced this issue Apr 12, 2020
@webknjaz
Copy link
Member Author

@ssbarnea ^

@webknjaz webknjaz added incomplete Additional work or information is required priority/critical and removed priority/high labels Apr 25, 2020
@webknjaz webknjaz changed the title Recover calling get_playbooks_and_roles [HELP WANTED] [SEND PR] Recover calling get_playbooks_and_roles Apr 25, 2020
@webknjaz
Copy link
Member Author

@cans
Copy link
Contributor

cans commented Apr 26, 2020

I did not forget. Working on it. But I saw #645 was changing the get_config() function API. So I was waiting for it to be merged (which is now done). And it also needs some regression tests so that does not happen again.

There is also the fact that the get_playbooks_and_roles() does not return absolute path. I'd like to fix that, but as mentioned in #744, that function seem a bit "touchy". There are a few trick we can use to quickly decrease that. Also would you mind if the function became a private function in the cli module, probably alongside with the get_yaml_files() function. They are not used anywhere else. Not sure if the latter could be ?

The id is, as you suggested above, is that the ansiblelint.cli.get_config() functions returns all configuration. The main function only has to act on it.

Hopefully a first "draft" will come before end of day.

@webknjaz
Copy link
Member Author

Great, thanks! Sounds good.

The reason I was asking, is because I saw a backreference in this issue from the commit and it's usually a good idea to somehow indicate in the issue that somebody is working on it to avoid "race conditions". Also, commit references to issues don't generate any notifications so I only noticed it accidentally because I opened the issue.

@webknjaz
Copy link
Member Author

webknjaz commented May 7, 2020

Fixed by #767.

@webknjaz webknjaz closed this as completed May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted incomplete Additional work or information is required
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants