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

Fix SAP profile comments parsing #122

Merged
merged 5 commits into from
Oct 20, 2022

Conversation

fabriziosestito
Copy link
Member

@fabriziosestito fabriziosestito commented Oct 20, 2022

Fixes profile file parsing that was adding commented-out line to the result config map.

Refactor the profile file parsing by using go-envparse instead of regex. No need to use map[string]interface{} anymore as the parsed values are strings.

@fabriziosestito fabriziosestito changed the title Add commented-out line to fixture Fix SAP profile comments parsing Oct 20, 2022
@fabriziosestito fabriziosestito marked this pull request as ready for review October 20, 2022 12:38
@fabriziosestito fabriziosestito force-pushed the fix_sap_profile_comments_parsing branch from 70820f6 to 7edbc98 Compare October 20, 2022 12:48
Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great man!
We need to create yet another tech debt to force the usage of this package in other similar scenario. It is much cleaner than using regexp...

test/fixtures/discovery/sap_system/sap_profile_default Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
internal/sapsystem/sapsystem.go Outdated Show resolved Hide resolved
@fabriziosestito
Copy link
Member Author

Great man! We need to create yet another tech debt to force the usage of this package in other similar scenario. It is much cleaner than using regexp...

tracking this

internal/sapsystem/sapsystem.go Outdated Show resolved Hide resolved
@fabriziosestito fabriziosestito added the bug Something isn't working label Oct 20, 2022
@fabriziosestito fabriziosestito merged commit 1a76139 into main Oct 20, 2022
@fabriziosestito fabriziosestito deleted the fix_sap_profile_comments_parsing branch October 20, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

4 participants