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

scrape_role_files: add support for nested role directories #108

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

swiekr
Copy link

@swiekr swiekr commented Jan 10, 2024

Changing the way how roles are scraped. Previously directories present in default roles directory were treated as roles (dir name is role name).

Now scraper enters each directory looking for one of 8 specified subdirs. When at least one such subdir is found, its parent is treated as role, else subdir is added to search list (this is equivalent of traversing repository)

Adjusting tests to utilize nested role directories

@swiekr swiekr requested a review from a team as a code owner January 10, 2024 18:04
@swiekr swiekr force-pushed the ks/parse_roles branch 3 times, most recently from 2660777 to 9fbd3e9 Compare February 6, 2024 15:18
@swiekr swiekr force-pushed the ks/parse_roles branch 2 times, most recently from 407a96e to aa8fd9b Compare February 8, 2024 11:04
Changing the way how roles are scraped. Previously directories present in
default roles directory were treated as roles (dir name is role name).

Now scraper enters each directory looking for one of 8 specified subdirs.
When at least one such subdir is found, its parent is treated as role, else
subdir is added to search list (this is equivalent of traversing repository)

Adjusting tests to utilize nested role directories
@felixedel felixedel merged commit 81decf3 into bmwcarit:master Feb 8, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants