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

* [inventory_aws_conformance] Use consistent security group order for the script
pull/54434/head
Sloane Hertel 5 years ago committed by GitHub
parent d66f3de3dc
commit cbfe77ad63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -245,7 +245,7 @@ class BotoInstance(InstanceBase):
self.dns_name = 'ec2-12-3-456-78.compute-1.amazonaws.com'
self.eventsSet = 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.instance_profile = {
'arn': 'arn:aws:iam::{0}:instance-profile/developer'.format(owner_id),

Loading…
Cancel
Save