-
Problem report
-
Resolution: Unresolved
-
Minor
-
None
-
7.0.11, 7.2.5
-
None
Throughout the template, there is a code snippet used to validate input parameters for "Script" item:
var Nutanix = { params: {}, setParams: function (requiredParams, allParams) { requiredParams.forEach(function (field) { if (typeof allParams !== 'object' || typeof allParams[field] === 'undefined' || allParams[field] === '') { throw 'Required param is not set: ' + field + '.'; } }); Nutanix.params = params; },
It's unclear how the function "setParams" can report "params" back.
The line seems incorrect:
Nutanix.params = params;
Because "params" seems to be an empty object.