Skip to content

Commit 1aedcd6

Browse files
committed
Apply "Drop deprecated features and use inclusive language"
Apply the changes in "Drop deprecated features and use inclusive language" after clustermgtd refactor Signed-off-by: chenwany <[email protected]>
1 parent 9e945d7 commit 1aedcd6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/slurm_plugin/instance_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ def _store_assigned_hostnames(self, nodes):
159159
Item={
160160
"Id": nodename,
161161
"InstanceId": instance.id,
162-
"MasterPrivateIp": self._head_node_private_ip,
163-
"MasterHostname": self._head_node_hostname,
162+
"HeadNodePrivateIp": self._head_node_private_ip,
163+
"HeadNodeHostname": self._head_node_hostname,
164164
}
165165
)
166166

tests/slurm_plugin/slurm_resources/test_instance_manager.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def instance_manager(self, mocker):
5252
cluster_name="hit",
5353
boto3_config=botocore.config.Config(),
5454
table_name="table_name",
55-
head_node_private_ip="master.ip",
56-
head_node_hostname="master-hostname",
55+
head_node_private_ip="head.node.ip",
56+
head_node_hostname="head-node-hostname",
5757
hosted_zone="hosted_zone",
5858
dns_domain="dns.domain",
5959
use_private_hostname=False,
@@ -737,8 +737,8 @@ def test_update_slurm_node_addrs(
737737
Item={
738738
"Id": "queue1-st-c5xlarge-1",
739739
"InstanceId": "id-1",
740-
"MasterPrivateIp": "master.ip",
741-
"MasterHostname": "master-hostname",
740+
"HeadNodePrivateIp": "head.node.ip",
741+
"HeadNodeHostname": "head-node-hostname",
742742
}
743743
)
744744
],
@@ -756,16 +756,16 @@ def test_update_slurm_node_addrs(
756756
Item={
757757
"Id": "queue1-st-c5xlarge-1",
758758
"InstanceId": "id-1",
759-
"MasterPrivateIp": "master.ip",
760-
"MasterHostname": "master-hostname",
759+
"HeadNodePrivateIp": "head.node.ip",
760+
"HeadNodeHostname": "head-node-hostname",
761761
}
762762
),
763763
call(
764764
Item={
765765
"Id": "queue1-st-c5xlarge-2",
766766
"InstanceId": "id-2",
767-
"MasterPrivateIp": "master.ip",
768-
"MasterHostname": "master-hostname",
767+
"HeadNodePrivateIp": "head.node.ip",
768+
"HeadNodeHostname": "head-node-hostname",
769769
}
770770
),
771771
],

0 commit comments

Comments
 (0)