Fix casing of zone id

This commit is contained in:
Girish Ramakrishnan
2015-10-30 18:05:08 -07:00
parent 5bd8579e73
commit d42f66bfed

View File

@@ -41,8 +41,6 @@ function getZoneByName(zoneName, callback) {
assert.strictEqual(typeof zoneName, 'string');
assert.strictEqual(typeof callback, 'function');
debug('getZoneByName: %s', zoneName);
getDnsCredentials(function (error, credentials) {
if (error) return callback(error);
@@ -56,8 +54,6 @@ function getZoneByName(zoneName, callback) {
if (!zone) return callback(new SubdomainError(SubdomainError.NOT_FOUND, 'no such zone'));
debug('getZoneByName: found zone', zone);
callback(null, zone);
});
});
@@ -140,7 +136,7 @@ function get(zoneName, subdomain, type, callback) {
if (error) return callback(error);
var params = {
HostedZoneId: zone.id,
HostedZoneId: zone.Id,
MaxItems: '1',
StartRecordName: (subdomain ? subdomain + '.' : '') + zoneName + '.',
StartRecordType: type
@@ -219,8 +215,6 @@ function del(zoneName, subdomain, type, values, callback) {
return callback(new SubdomainError(SubdomainError.EXTERNAL_ERROR, new Error(error)));
}
debug('delSubdomain: success');
callback(null);
});
});