[inventory_aws_conformance] use consistent sg order in script (#54423)

* [inventory_aws_conformance] Use consistent security group order for the script
This commit is contained in:
Sloane Hertel 2019-03-26 17:11:37 -05:00 committed by GitHub
parent d66f3de3dc
commit cbfe77ad63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,7 +245,7 @@ class BotoInstance(InstanceBase):
self.dns_name = 'ec2-12-3-456-78.compute-1.amazonaws.com' self.dns_name = 'ec2-12-3-456-78.compute-1.amazonaws.com'
self.eventsSet = None self.eventsSet = None
self.group_name = None self.group_name = None
self.groups = [SecurityGroup(k, v) for k, v in self._ignore_security_groups.items()] self.groups = [SecurityGroup(k, v) for k, v in sorted(self._ignore_security_groups.items())]
self.id = instance_id self.id = instance_id
self.instance_profile = { self.instance_profile = {
'arn': 'arn:aws:iam::{0}:instance-profile/developer'.format(owner_id), 'arn': 'arn:aws:iam::{0}:instance-profile/developer'.format(owner_id),