pass retry options to waitForDns

This commit is contained in:
Girish Ramakrishnan
2016-06-21 15:12:36 -05:00
parent 9f74fead4b
commit f84de690ce
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ function installAdminCertificate(callback) {
sysinfo.getIp(function (error, ip) {
if (error) return callback(error);
waitForDns(config.adminFqdn(), ip, 'A', function (error) {
if (error) return callback(error); // this cannot happen because we retry forever
waitForDns(config.adminFqdn(), ip, 'A', { interval: 5000, times: 50000 }, function (error) {
if (error) return callback(error);
ensureCertificate({ location: constants.ADMIN_LOCATION }, function (error, certFilePath, keyFilePath) {
if (error) { // currently, this can never happen