Actions
Bug #9087
closedError on promises generation when there are no properties files
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Small
Priority:
47
Name check:
Fix check:
Regression:
Description
If there are no properties defined, we have the following error at generation:
Command to check generated promises is: '/var/rudder/cfengine-community/bin/cf-promises -f /var/rudder/cfengine-community/inputs.new/promises.cf' ⇨ error: readjson: data error parsing JSON file 'cf_null': No data ⇨ error: readjson: data error parsing JSON file 'cf_null': No data ⇨ error: readjson: data error parsing JSON file 'cf_null': No data
issue is we don't check that there are any files in the findfiles in common/1.0/properties.cf - if folder is empty, then it returns cf_null
This is pretty impacting as when doing update of Rudder, we come from a state with no properties to a state with properties, but we check the previous generated properties (${sys.workdir}/inputs/properties.d/*.json)
Actions