-
Notifications
You must be signed in to change notification settings - Fork 7
raw_output_present
fails when fact isn't explicitly in facts_to_collect
#541
Comments
Options for dealing with it:
|
We could mitigate the issue with number 1 by fixing #464 at the same time, which would make the Python list the single, canonical list of fact dependencies and would prevent the class of errors I was worried about. We could mitigate the issue with number 2 by blindly filtering every extra fact out just before we pass data to I'm inclined to do number 1, because it moves the fingerprinter in a good long-term direction and shouldn't be too much extra work, but I would like more thoughts. |
I would suggest option 2. Its simple for now and doesn't add enhancements to rho. I think number 1 is good to keep in mind for sonar. |
@chambridge okay, I will do number 2. |
Make raw_output_present always return data if data is present
The
raw_output_present
function starts like this:If the fact that it retrieves was not in the list of facts we need to collect, then return empty. I did this originally to avoid errors in the case where a fact was legitimately not collected.
However, some of our facts how have multiple triggers.
karaf_home_bin_fuse
can be collected ifjboss.fuse-on-karaf.karaf-home
is requested, or if the user requestsjboss.fuse.summary
, because it is used to generate the summary. If the user requestsjboss.fuse.summary
explicitly and notjboss.fuse-on-karaf.karaf-home
, thenraw_output_present
will incorrectly return nothing when it should give the fact data.The text was updated successfully, but these errors were encountered: