remove subdomains.status

This commit is contained in:
Girish Ramakrishnan
2016-12-14 12:28:31 -08:00
parent d475d9bcbf
commit 3ede9af34b
7 changed files with 0 additions and 133 deletions
-17
View File
@@ -4,7 +4,6 @@ exports = module.exports = {
upsert: upsert,
get: get,
del: del,
getChangeStatus: getChangeStatus,
waitForDns: require('./waitfordns.js'),
// not part of "dns" interface
@@ -210,19 +209,3 @@ function del(dnsConfig, zoneName, subdomain, type, values, callback) {
});
}
function getChangeStatus(dnsConfig, changeId, callback) {
assert.strictEqual(typeof dnsConfig, 'object');
assert.strictEqual(typeof changeId, 'string');
assert.strictEqual(typeof callback, 'function');
if (changeId === '') return callback(null, 'INSYNC');
var route53 = new AWS.Route53(getDnsCredentials(dnsConfig));
route53.getChange({ Id: changeId }, function (error, result) {
if (error && error.code === 'AccessDenied') return callback(new SubdomainError(SubdomainError.ACCESS_DENIED, error.message));
if (error) return callback(error);
callback(null, result.ChangeInfo.Status);
});
}