Actions
Bug #5410
closedshell script that list all compatible .cf files should ignore non-existant directories
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
Currently, if we run list-compatible-inputs on a set of directories with one or more missing, the script outputs errors on stdout, which is used directly as the inputs for CFEngine to read, causing it to fail:
$ list-compatible-inputs 3.6 tree 30_generic_methods 80_nonexistant tree/30_generic_methods/file_ensure_block_in_section.cf tree/30_generic_methods/_classes_copy.cf /usr/bin/find: `tree/80_nonexistant': No such file or directory tree/10_ncf_internals/list-compatible-inputs: 73: tree/10_ncf_internals/list-compatible-inputs: cannot create tree/80_nonexistant/.ncf-exclude-cache-3.6: Directory nonexistent
We need the script to gracefully ignore this.
Actions