Project

General

Profile

Actions

Bug #5410

closed

shell script that list all compatible .cf files should ignore non-existant directories

Added by Jonathan CLARKE over 9 years ago. Updated almost 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
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.


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #5401: Create a shell script that list all .cf files compatible with a given cf-agent version.ReleasedBenoît PECCATTEActions
Related to Rudder - Bug #5409: Fisrt promise generation fail on Rudder server ( /var/rudder/ncf/local missing)ReleasedJonathan CLARKE2014-08-19Actions
Actions

Also available in: Atom PDF