Project

General

Profile

Actions

Bug #5753

closed

Invalid generated promises are not detected as invalid as cf-promises fails to return error code

Added by Nicolas CHARLES over 9 years ago. Updated almost 9 years ago.

Status:
Rejected
Priority:
N/A
Category:
Web - Config management
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

when I have invalid promises, du to class expression non parseable in ifvarclass, the return code of cf-promises is 0
So my promises are invalid, but the web interface doesn't know it :(

manually running cf-promises returns

2014-11-07T08:51:50+0000    error: /default/centreon_installation/methods: Unable to parse class expression '(file_copy_/etc/nrpe/centreon-nrpe.cfg_repaired|service_ensure_running_centreon_nrpe_repaired).!(file_copy_/etc/nrpe/centreon-nrpe.cfg_error|service_ensure_running_centreon_nrpe_error)'
2014-11-07T08:51:50+0000    error: /default/centreon_installation/methods: Unable to parse class expression '(file_copy_/etc/nrpe/centreon-nrpe.cfg_error|service_ensure_running_centreon_nrpe_error)'
#echo $?
0

Actions

Also available in: Atom PDF