-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Connect machinery to ingest previous reports
This is work towards #946 This commit connects the command line argument --with-context or -ctx to the inventory machinery for the --live option. - We introduce a consumer entrypoint for the format plugin json. We make the decision here to keep the formats of the input and output reports to be consistent. In the JSON case, the report provided as -ctx context must be of JSON format. We do this to minimize the overhead of maintaining a set of formats for input reports as well as output reports and thus help with code reuse. For the JSON format, we use "jsonc". - In the --live run, we modify the actual format selector string to add the "c" at the end of it, thus allowing us to call the consumer plugin rather than the generator plugin. The reporting will stay the same. - We also added some fixes to the Consumer abstract base class to implement "consume_layer" rather than just "consume", and fixed the layer index increment in the JSON Consumer class. Signed-off-by: Nisha K <[email protected]>
- Loading branch information
Nisha K
committed
Jun 2, 2021
1 parent
1e167fa
commit fce138b
Showing
4 changed files
with
38 additions
and
4 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 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 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 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