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

Treat ancestors/descendents as info rather than metrics. #2

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

dsnt02518
Copy link
Contributor

Fixes issue #1

@dsnt02518 dsnt02518 changed the title Tream ancestors/descendents as info rather than metrics. Treat ancestors/descendents as info rather than metrics. Dec 2, 2021
Include additional info fields in test data, and fix field ordering to
be alphanumeric to satisfy test criteria.
@hansmi
Copy link
Owner

hansmi commented Dec 2, 2021

Thank you for your contribution! Overall the changes look good.

Can you please add a separate testdata file with populated lv_ancestors, lv_descendants, lv_full_ancestors and lv_full_descendants fields? Feel free to obfuscate as necessary. The command below produces a suitable test file. The code is written to not require anything but the UUID. jq is used to indent the data consistent with the existing files.

/usr/sbin/lvm fullreport --all --config 'global/suffix=false global/units=b report/binary_values_as_numeric=1 report/output_format=json report/buffered=false report/time_format=%s' --configreport pv --options -all --configreport lv --options lv_uuid,lv_name,lv_ancestors,lv_descendants,lv_full_ancestors,lv_full_descendants --configreport vg --options -all --configreport seg --options -all --configreport pvseg --options -all | \
jq -M

Ensure ancestors are parsed properly as info rather than metrics.
@dsnt02518
Copy link
Contributor Author

dsnt02518 commented Dec 3, 2021 via email

@hansmi hansmi merged commit daffd86 into hansmi:main Dec 3, 2021
@hansmi hansmi mentioned this pull request Jun 29, 2023
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.

None yet

2 participants