Skip to content

Commit

Permalink
fix(hydra reate-runner-image): missing SCT params
Browse files Browse the repository at this point in the history
as some point the params are needed to have use the sct_runner
and it was missing for this command
  • Loading branch information
fruch committed Jun 18, 2024
1 parent 8b31fa2 commit 0f1730c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sct.py
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,10 @@ def create_runner_image(cloud_provider, region, availability_zone):
if cloud_provider == "aws":
assert len(availability_zone) == 1, f"Invalid AZ: {availability_zone}, availability-zone is one-letter a-z."
add_file_logger()
sct_runner = get_sct_runner(cloud_provider=cloud_provider, region_name=region, availability_zone=availability_zone)
os.environ.setdefault('SCT_CLUSTER_BACKEND', cloud_provider)
sct_config = SCTConfiguration()
sct_runner = get_sct_runner(cloud_provider=cloud_provider, region_name=region,
availability_zone=availability_zone, params=sct_config)
sct_runner.create_image()


Expand Down

0 comments on commit 0f1730c

Please sign in to comment.