Skip to content

Commit

Permalink
Sets default value for imds_support param to v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
apozsuse committed Jun 24, 2024
1 parent da83342 commit 60be2d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mash/services/create/ec2_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def post_init(self):
'boot_firmware',
['uefi-preferred']
)
self.imds_version = self.job_config.get('imds_version', '')
self.imds_version = self.job_config.get('imds_version', 'v2.0')

# EC2 images only support one firmware
self.boot_firmware = self.boot_firmware[0]
Expand Down
2 changes: 1 addition & 1 deletion mash/services/jobcreator/ec2_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def post_init(self):
False
)
self.launch_inst_type = self.kwargs.get('launch_inst_type')
self.imds_version = self.kwargs.get('imds_version', '')
self.imds_version = self.kwargs.get('imds_version', 'v2.0')

def _get_target_regions_list(self):
"""
Expand Down

0 comments on commit 60be2d2

Please sign in to comment.