From 4fc6eb187612a2d7c01a2118e31c3a0f41102584 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 5 Sep 2016 15:17:42 -0700 Subject: [PATCH] fix route53.get() --- src/dns/route53.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns/route53.js b/src/dns/route53.js index 0f5d2221d..98d98ca59 100644 --- a/src/dns/route53.js +++ b/src/dns/route53.js @@ -152,7 +152,7 @@ function get(dnsConfig, zoneName, subdomain, type, callback) { if (error && error.code === 'AccessDenied') return callback(new SubdomainError(SubdomainError.ACCESS_DENIED, error.message)); if (error) return callback(new SubdomainError(SubdomainError.EXTERNAL_ERROR, error.message)); if (result.ResourceRecordSets.length === 0) return callback(null, [ ]); - if (result.ResourceRecordSets[0].Name !== params.StartRecordName && result.ResourceRecordSets[0].Type !== params.StartRecordType) return callback(null, [ ]); + if (result.ResourceRecordSets[0].Name !== params.StartRecordName || result.ResourceRecordSets[0].Type !== params.StartRecordType) return callback(null, [ ]); var values = result.ResourceRecordSets[0].ResourceRecords.map(function (record) { return record.Value; });