diff --git a/Orchestrator/Workflows/Generate Unique Hostname/07_check_for_AD_conflict.js b/Orchestrator/Workflows/Generate Unique Hostname/07_check_for_AD_conflict.js index 4f65321..eea9650 100644 --- a/Orchestrator/Workflows/Generate Unique Hostname/07_check_for_AD_conflict.js +++ b/Orchestrator/Workflows/Generate Unique Hostname/07_check_for_AD_conflict.js @@ -8,7 +8,7 @@ if (conflict) { System.debug("Existing conflict found, skipping AD check..."); } else { var computer = ActiveDirectory.getComputerAD(candidateVmName, adHost); - System.log("Searched AD for: " + candidateVmName); + System.debug("Searched AD for: " + candidateVmName); if (computer) { conflict = true; errMsg = "Conflicting AD object found!" diff --git a/Orchestrator/Workflows/Generate Unique Hostname/08_return_nextVmName.js b/Orchestrator/Workflows/Generate Unique Hostname/08_return_nextVmName.js deleted file mode 100644 index 32bdfff..0000000 --- a/Orchestrator/Workflows/Generate Unique Hostname/08_return_nextVmName.js +++ /dev/null @@ -1,7 +0,0 @@ -/* JavaScript: return nextVmName - Returns the selected nextVmName after passing all collision checks - Inputs: candidateVmName (string) - Outputs: nextVmName (string) -*/ -nextVmName = candidateVmName; -System.log(" ***** Selecting [" + nextVmName + "] as the next VM name ***** ") \ No newline at end of file diff --git a/Orchestrator/Workflows/Generate Unique Hostname/08_return_vmName.js b/Orchestrator/Workflows/Generate Unique Hostname/08_return_vmName.js new file mode 100644 index 0000000..adbb6f8 --- /dev/null +++ b/Orchestrator/Workflows/Generate Unique Hostname/08_return_vmName.js @@ -0,0 +1,7 @@ +/* JavaScript: return vmName + Returns the selected vmName after passing all collision checks + Inputs: candidateVmName (string) + Outputs: vmName (string) +*/ +vmName = candidateVmName; +System.log(" ***** Selecting [" + vmName + "] as the next VM name ***** ") \ No newline at end of file