Skip to content

Commit

Permalink
Merge pull request #3502 from anotherchrisberry/sa-sg-et
Browse files Browse the repository at this point in the history
fix(securitygroups): render entity tags on standalone security groups
  • Loading branch information
anotherchrisberry committed Apr 8, 2017
2 parents 512dcf1 + 717a216 commit 609a649
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -295,7 +295,7 @@ export class SecurityGroupReader {
return this.entityTagsReader.getAllEntityTags('securitygroup', entityIds).then(tags => {
securityGroups.forEach(securityGroup => {
securityGroup.entityTags = tags.find(t => t.entityRef.entityId === securityGroup.name &&
t.entityRef['account'] === securityGroup.account &&
t.entityRef['account'] === securityGroup.accountName &&
t.entityRef['region'] === securityGroup.region);
});
return securityGroups;
Expand Down Expand Up @@ -392,7 +392,9 @@ export class SecurityGroupReader {
}
});
}

if (SETTINGS.feature.entityTags && application.isStandalone) {
return this.addEntityTags([details]).then(all => all[0]);
}
return details;
});
}
Expand Down

0 comments on commit 609a649

Please sign in to comment.