diff --git a/test/integration/targets/inventory_aws_conformance/lib/boto/mocks/instances.py b/test/integration/targets/inventory_aws_conformance/lib/boto/mocks/instances.py index aa2f45dbf0..fd8e33f126 100644 --- a/test/integration/targets/inventory_aws_conformance/lib/boto/mocks/instances.py +++ b/test/integration/targets/inventory_aws_conformance/lib/boto/mocks/instances.py @@ -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),