-
Notifications
You must be signed in to change notification settings - Fork 11
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
Sapservices gatherer #282
Sapservices gatherer #282
Conversation
2c67751
to
9b60482
Compare
9b60482
to
2871a16
Compare
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.
The code logic looks totally correct.
I'm wondering if we should do some integrity check on the line contents. I mean, to check if the line with systemctl or sapstartsrv follows the correct structure
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.
Remember to add the gatherer to the list of available gatherers
Maybe you can "mix" the 2 success tests to avoid the "duplicated" warning message
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 @CDimonaco, looks good to me overall but the names of the tests and content of the errors need some fixing
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.
Approving as we had a chat and its now clear what I meant, feel free to fix and merge when ready 👍
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.
Looks good! Some cosmetic suggestions.
At least fix the alphabetical ordering of the getherer.go
file.
About the linting error, I guess you will need to put some nolint
flag there, don't merge with the error please
69c25f8
to
49380ee
Compare
Gatherer for sapservices file, by default
/usr/sap/sapservices
.Return each entry of sapservices file as a map, with the kind of startup system used,
systemd
orsapservices