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 10 years ago. Updated over 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 #1

Updated by Jonathan CLARKE over 10 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/ncf/pull/103
Actions #2

Updated by Jonathan CLARKE over 10 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset commit:48ff1265029f6c6891dacc41a21974ee53fe2d98.

Actions #3

Updated by Nicolas CHARLES over 10 years ago

Applied in changeset commit:eb522dc8e34685ae68adb2703811affa4dc31877.

Actions #4

Updated by Benoît PECCATTE over 9 years ago

  • Target version set to 0.x
Actions #5

Updated by Vincent MEMBRÉ about 8 years ago

  • Status changed from Pending release to Released
Actions #6

Updated by Alexis Mousset over 2 years ago

  • Target version changed from 0.x to ncf-0.x
  • Priority set to 0
Actions #7

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category set to Generic methods
Actions

Also available in: Atom PDF