You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Puppet Docs for ENC defines the format of returned result as hash with mandatory key either "classes" or "parameters" or both. "environment" key is optional.
Current implementation of d42 ENC script always returns "classes" and there is no way to omit it, even if key "parameters" is presented. If "classes" doesn't exist (omitted) in the input JSON (under d42 "custom fields"), function top_level_classes_reducer fails on line 64, because it indexes directly key ['classes'], which doesn't exist.
If "classes" key is defined as "null" (I don't want to provide classes via ENC; I want to provide only "parameters"), the return format changes - "classes" becomes a global key and "parameters" and "environment" are under its scope (they look like classes names), which is not correct. "classes", "parameters" and "environment" keys have to be on same hierarchy level according to puppet docs.
Expected behavior: return format has to comply to ENC description in Puppet docs. Script has to be able to work with input of either "classes" or "parameters" or both.
The text was updated successfully, but these errors were encountered:
Puppet Docs for ENC defines the format of returned result as hash with mandatory key either "classes" or "parameters" or both. "environment" key is optional.
Current implementation of d42 ENC script always returns "classes" and there is no way to omit it, even if key "parameters" is presented. If "classes" doesn't exist (omitted) in the input JSON (under d42 "custom fields"), function top_level_classes_reducer fails on line 64, because it indexes directly key ['classes'], which doesn't exist.
If "classes" key is defined as "null" (I don't want to provide classes via ENC; I want to provide only "parameters"), the return format changes - "classes" becomes a global key and "parameters" and "environment" are under its scope (they look like classes names), which is not correct. "classes", "parameters" and "environment" keys have to be on same hierarchy level according to puppet docs.
Expected behavior: return format has to comply to ENC description in Puppet docs. Script has to be able to work with input of either "classes" or "parameters" or both.
The text was updated successfully, but these errors were encountered: