mirror of
https://github.com/jbowdre/vRealize.git
synced 2024-11-23 10:12:18 +00:00
update workflow
This commit is contained in:
parent
8e6775e734
commit
f0e65c2bc3
1 changed files with 10 additions and 0 deletions
|
@ -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<newNames.length; i++) {
|
||||||
|
System.log("Replacing resourceName [" + resourceNames[i] + "] with [" + newNames[i] + "]");
|
||||||
|
resourceNames[i] = newNames[i];
|
||||||
|
}
|
Loading…
Reference in a new issue