Bug #26651
openCompilation error when iterator key with empty value
Description
When creating a technique with the new “foreach” iterators, adding a key causes an empty box to appear for this key.
Adding entries with the [+] button while leaving the first box empty will cause a compilation error at save :
« Error when saving technique: error when committing Technique 'internal_iterator_package_installation/1.0'; cause was: Unexpected: Error when trying to compile technique '/var/rudder/configuration-repository/techniques/ncf_techniques/internal_iterator_package_installation/1.0'. Error details are available in `compilation-output.yml` file in the same directory. Error message: 'Exit code=2 for technique: '/var/rudder/configuration-repository/techniques/ncf_techniques/internal_iterator_package_installation/1.0'.' »
Logfile shows :
# cat compilation-output.yml compiler: rudderc resultCode: 2 fileStatus: [] msg: 'Exit code=2 for technique: ''/var/rudder/configuration-repository/techniques/ncf_techniques/internal_iterator_package_installation/1.0''.' stdout: |2 Read 204 methods stderr: | ERROR Invalid parameter 'name' in method call '10 - Package present ' for method 'package_present' Caused by: value must not be empty Stack backtrace: 0: <unknown> 1: <unknown> 2: <unknown> 3: <unknown> 4: <unknown> 5: <unknown> 6: <unknown> 7: <unknown> 8: <unknown> 9: <unknown> 10: <unknown> 11: <unknown> 12: <unknown> 13: __libc_start_main 14: <unknown> ERROR 1 error(s) were encountered when reading technique
Files
No data to display