diff --git a/nise/generators/aws/ec2_generator.py b/nise/generators/aws/ec2_generator.py index 804afd58..a1a81927 100644 --- a/nise/generators/aws/ec2_generator.py +++ b/nise/generators/aws/ec2_generator.py @@ -103,7 +103,7 @@ def __init__(self, start_date, end_date, currency, payer_account, usage_accounts self._instance_type = choice(self.INSTANCE_TYPES) self._operating_system = choice(self.OPERATING_SYSTEMS) self._processor_arch = self.attributes.get("processor_arch", choice(self.ARCHS)) - self._resource_id = f"i-{self.attributes.get("resource_id", self.fake.ean8())}" + self._resource_id = f"i-{self.attributes.get('resource_id', self.fake.ean8())}" self._product_sku = self.attributes.get("product_sku", self.fake.pystr(min_chars=12, max_chars=12).upper()) self._tags = self.attributes.get("tags", [])