mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 15:38:00 +00:00
scripts: Refactor collect script
Create a new function to collect all data display function calls in the data collection script. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
925122a411
commit
4f34a54777
@ -672,6 +672,19 @@ read_osbuilder_file()
|
|||||||
cat "$file"
|
cat "$file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_details()
|
||||||
|
{
|
||||||
|
show_meta
|
||||||
|
show_runtime
|
||||||
|
show_runtime_configs
|
||||||
|
show_throttler_details
|
||||||
|
show_image_details
|
||||||
|
show_initrd_details
|
||||||
|
show_log_details
|
||||||
|
show_container_mgr_details
|
||||||
|
show_package_versions
|
||||||
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
args=$(getopt \
|
args=$(getopt \
|
||||||
@ -711,15 +724,7 @@ main()
|
|||||||
[ $(id -u) -eq 0 ] || die "Need to run as root"
|
[ $(id -u) -eq 0 ] || die "Need to run as root"
|
||||||
[ -n "$runtime" ] || die "cannot find runtime '$runtime_name'"
|
[ -n "$runtime" ] || die "cannot find runtime '$runtime_name'"
|
||||||
|
|
||||||
show_meta
|
show_details
|
||||||
show_runtime
|
|
||||||
show_runtime_configs
|
|
||||||
show_throttler_details
|
|
||||||
show_image_details
|
|
||||||
show_initrd_details
|
|
||||||
show_log_details
|
|
||||||
show_container_mgr_details
|
|
||||||
show_package_versions
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user