Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to migrate an inventory plugin to the new API the following steps must be taken: * Move the file to the new location (or add the content to an existing file, as in this case). * Adjust the arguments of the inventory function (refer to the sphinx documentation or the doc-string of the `register.inventory_plugin` for details). * Reorganize the function to be a generator of TableRows. Note that the SID is the only `key_column`. If all of the key_columns of two TableRows contain the same values, the backend will assume they are in fact refering to the same 'thing', and merge them into the same row. This logic is used when computing the inventory history or merging information gathered from configured 'retention intervals'. Change-Id: Ic24e6b454430377b1626c3510842922e725f60c7
- Loading branch information
Showing
3 changed files
with
61 additions
and
145 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
This file was deleted.
Oops, something went wrong.
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