Werk #12906 · Jul 25, 21
unix agents: changed signature of 'run_cached'
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
This incompatible API change only affects users who use the function run_cached exported by the agents.
The function no longer accepts the options -s, -m or -am.
The functions synopsis is now run_cached NAME MAXAGE COMMAND
- name: The name of the cache file
- maxage: The time in seconds the generated data should be considered valid
- command: The command to generate the data
In particular the removal of the '-s' option means you now have to include the creation of the section header in your command.
Details
- Class:
- New Features
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 2.1.0b1CommunityProUltimate + MT