Update 03_create_dns_record.js

This commit is contained in:
John Bowdre 2022-07-11 09:05:50 -05:00 committed by GitHub
parent 81162ccb49
commit 7ee71ee5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ var ipAddress = inputProperties.addresses[0];
var created = false;
if (staticDns == "true" && dnsHost.supportedDomains.indexOf(dnsDomain) >= 0) {
System.log("Attempting to create DNS record for " + hostname + "." + ipAddress + "...");
var sshSession = new SSHSession(dnsHost.sshHost, dnsHost_sshUser);
var sshSession = new SSHSession(dnsHost.sshHost, dnsHost.sshUser);
System.debug("Connecting to " + dnsHost.sshHost + "...");
sshSession.connectWithPassword(dnsHost.sshPass);
for each (dnsServer in dnsHost.dnsServers) {
@ -31,4 +31,4 @@ if (staticDns == "true" && dnsHost.supportedDomains.indexOf(dnsDomain) >= 0) {
}
} else {
System.log("Not trying to do DNS.");
}
}