Skip to content

Commit

Permalink
fix(eks.py): use correct signature for method
Browse files Browse the repository at this point in the history
MonitorSetEKS inherits from  AWSCluster and
reimplement method _create_instance.
Update signature with missed argument
is_zero_node
  • Loading branch information
aleksbykov authored and soyacz committed Dec 1, 2024
1 parent 63b10fb commit f21011c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdcm/cluster_k8s/eks.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,9 @@ def sort_by_index(item):
instances = sorted(instances, key=sort_by_index)
return [ec2.get_instance(instance['InstanceId']) for instance in instances]

def _create_instances(self, count, ec2_user_data='', dc_idx=0, az_idx=0, instance_type=None): # pylint: disable=too-many-arguments
def _create_instances(self, count, ec2_user_data='', dc_idx=0, az_idx=0, instance_type=None, is_zero_node=False): # pylint: disable=too-many-arguments
instances = super()._create_instances(count=count, ec2_user_data=ec2_user_data, dc_idx=dc_idx,
az_idx=az_idx, instance_type=instance_type)
az_idx=az_idx, instance_type=instance_type, is_zero_node=is_zero_node)
for instance in instances:
self._ec2_services[dc_idx].create_tags(
Resources=[instance.id],
Expand Down

0 comments on commit f21011c

Please sign in to comment.