-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Label Templates: rework collection of 'hostinfo' data and collected v…
…ariables (#843) * Label Templates: rework collection of 'System Data' info Allow automatic conversion of data to map[string]interface{} (Template Labels format) using reflection where all data can be useful. Still do manual collection of data in the map[string]interface{} when dropping of part of the data is needed. Use the original hostinfo field names, drop spaces in the keys. Import also the SMBIOS data from hostinfo, since are there (so also without dmidecode tool some SMBIOS info will be available). Keep support of old HARDWARE variable (to be deprecated sooner or later). * register/dumpdata: rework initial version adding more options notably the "label" output format, which is now the default * register: send both legacy and new Label Templates variables we don't want to break possible setups using the older Label Templates variables: send both. * tests: check new hostinfo Label Templates format --------- Signed-off-by: Francesco Giudici <[email protected]>
- Loading branch information
Showing
4 changed files
with
378 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.