Merge pull request #1387 from jodh-intel/allow-data-collection-to-be-hidden

Allow data collection to be hidden
This commit is contained in:
James O. D. Hunt 2019-03-22 09:53:44 +00:00 committed by GitHub
commit 36fce98517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -672,6 +672,40 @@ read_osbuilder_file()
cat "$file"
}
show_header()
{
cat <<EOT
<details>
<summary>Show <tt>$script_name</tt> details</summary>
<p>
EOT
}
show_footer()
{
cat <<EOT
</p>
</details>
EOT
}
show_details()
{
show_header
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
show_footer
}
main()
{
args=$(getopt \
@ -711,15 +745,7 @@ main()
[ $(id -u) -eq 0 ] || die "Need to run as root"
[ -n "$runtime" ] || die "cannot find runtime '$runtime_name'"
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
show_details
}
main "$@"