From f0e65c2bc3d34fc72d0f7359643eac87830aa360 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 15 Jun 2022 16:34:37 -0500 Subject: [PATCH] update workflow --- .../Workflows/VM Provision/Tasks/04_apply_hostnames.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Orchestrator/Workflows/VM Provision/Tasks/04_apply_hostnames.js 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