-
Notifications
You must be signed in to change notification settings - Fork 95
Collect ~/.config/crm/crm.conf in crm report result #1622
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
Collect ~/.config/crm/crm.conf in crm report result #1622
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
a61eb16 to
c229fcc
Compare
crmsh/report/collect.py
Outdated
| for log in log_list: | ||
| log_list = [ | ||
| os.path.expanduser(log) | ||
| if log.startswith("~") else log |
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.
No need to test startwith("~"). os.path.expanduser() handles paths without leading ~ correctly.
Create {basename}.d directory in report result and put those files in
it. Then files like `/etc/crm/crm.conf` and `/root/.config/crm/crm.conf`
will under `crm.conf.d` directory.
which was used by ocfs2, but ocfs2 related code has been removed.
c229fcc to
f523ac9
Compare
Changes include:
The file
~/.config/crm/crm.confis now collected in crm report resultTo manage files that have the same basename (e.g.,
crm.conf), the PR implements a new directory. When multiple files share the same basename, a directory named{basename}.dis created in the report result. All files with the same basename are then placed inside this directory. For instance, the files/etc/crm/crm.confand/root/.config/crm/crm.confwill be placed inside a directory namedcrm.conf.d