Skip to content

Commit f20d908

Browse files
committed
Rename InstanceTypeLIst to Instances
Signed-off-by: Luca Carrogu <[email protected]>
1 parent 61ca4b7 commit f20d908

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/slurm_plugin/fleet_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def _evaluate_launch_params(self, count):
270270
},
271271
}
272272

273-
for instance_type in self._compute_resource_config["InstanceTypeList"]:
273+
for instance_type in self._compute_resource_config["Instances"]:
274274
override = copy.deepcopy(queue_overrides)
275275
override["InstanceType"] = instance_type["InstanceType"]
276276
template_overrides.append(override)

tests/common.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,32 @@ def client_error(error_code):
3232

3333

3434
FLEET_CONFIG = {
35-
"queue": {"c5xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "c5.xlarge"}]}},
35+
"queue": {"c5xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "c5.xlarge"}]}},
3636
"queue1": {
37-
"c5xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "c5.xlarge"}]},
38-
"c52xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "c5.2xlarge"}]},
39-
"p4d24xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "p4d.24xlarge"}]},
37+
"c5xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "c5.xlarge"}]},
38+
"c52xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "c5.2xlarge"}]},
39+
"p4d24xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "p4d.24xlarge"}]},
4040
"fleet-spot": {
4141
"Api": "create-fleet",
42-
"InstanceTypeList": [{"InstanceType": "t2.medium"}, {"InstanceType": "t2.large"}],
42+
"Instances": [{"InstanceType": "t2.medium"}, {"InstanceType": "t2.large"}],
4343
"MaxPrice": 10,
4444
"AllocationStrategy": "capacity-optimized",
4545
"CapacityType": "spot",
4646
},
4747
},
4848
"queue2": {
49-
"c5xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "c5.xlarge"}]},
49+
"c5xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "c5.xlarge"}]},
5050
"fleet-ondemand": {
5151
"Api": "create-fleet",
52-
"InstanceTypeList": [{"InstanceType": "t2.medium"}, {"InstanceType": "t2.large"}],
52+
"Instances": [{"InstanceType": "t2.medium"}, {"InstanceType": "t2.large"}],
5353
"AllocationStrategy": "lowest-price",
5454
"CapacityType": "on-demand",
5555
},
5656
},
5757
"queue3": {
58-
"c5xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "c5.xlarge"}]},
59-
"c52xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "c5.2xlarge"}]},
60-
"p4d24xlarge": {"Api": "run-instances", "InstanceTypeList": [{"InstanceType": "p4d.24xlarge"}]},
58+
"c5xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "c5.xlarge"}]},
59+
"c52xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "c5.2xlarge"}]},
60+
"p4d24xlarge": {"Api": "run-instances", "Instances": [{"InstanceType": "p4d.24xlarge"}]},
6161
},
6262
}
6363

0 commit comments

Comments
 (0)