Navigation Menu

Skip to content

Commit

Permalink
Generate response for DescribeDomains correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 3, 2012
1 parent 125c03a commit ce8a142
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/api/2011-02-01/configuration.js
Expand Up @@ -32,7 +32,7 @@ function getBaseDomain(domain) {

function createDomainStatus(options) {
var domainStatus = xmlbuilder.create();
domainStatus.begin('DomainStatus', { version: '1.0' })
domainStatus.begin(options.element || 'DomainStatus', { version: '1.0' })
.element('Created').text(options.created || 'false').up()
.element('Deleted').text(options.deleted || 'false').up()
.element('DocService')
Expand Down Expand Up @@ -124,13 +124,13 @@ function createDomainStatusList(options) {
var doc = xmlbuilder.create();
var domainStatusList = doc.begin('DomainStatusList', {version: '1.0'});
options.domains.forEach(function(domain) {
domainStatusList.element('member')
.importXMLBuilder(createDomainStatus({
domain: domain,
hostname: options.hostname
}));
domainStatusList.importXMLBuilder(createDomainStatus({
domain: domain,
hostname: options.hostname,
element: 'member'
}));
});
return domainStatusList;
return doc;
}

function createDescribeDomainsResponse(options) {
Expand Down

0 comments on commit ce8a142

Please sign in to comment.