diff --git a/Orchestrator/Workflows/VM Provision/Tasks/04_apply_hostnames.js b/Orchestrator/Workflows/VM Provision/Tasks/04_apply_hostnames.js new file mode 100644 index 0000000..711015a --- /dev/null +++ b/Orchestrator/Workflows/VM Provision/Tasks/04_apply_hostnames.js @@ -0,0 +1,10 @@ +/* JavaScript: apply hostnames + Iterates through the resourceNames array and replaces the original name with the new one. + Inputs: newNames (Array/string), inputProperties (Properties) + Outputs: resourceNames (Array/string) +*/ +resourceNames = inputProperties.get("resourceNames"); +for (var i=0; i