Forum Discussion
Antony_Hawkins
7 years agoEmployee
Compare_Config_To_Template_POC_v1 v1.4.0: 2GTW7W
So, what's so much better about v1.4.0?
The output.
Instead of printing the config, then printing (rather clumsily) all the discrepancies, then printing the template, which could result in a huge output, it now just prints the config, with a marker comment at the end of any line that differs from the template:
You'll see that the comment consists of a key phrase, and the corresponding line from the template.
A groovy scripted check alerts on the presence of one of more occurrences of the key phrase (hard coded in as ' <<<<<<<<<< This line differs from template. Template line is: ', but this could be changed or tokenized to suit requirements).
Related Content
- 2 months ago
- 6 months agoAnonymous