Skip to content

Commit

Permalink
Use cluster id while adding machinepool (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarukumar authored Mar 27, 2024
1 parent 06c2c58 commit 5db9e26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ods_ci/utils/scripts/ocm/ocm.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,10 @@ def add_machine_pool(self):
if bool(self.reuse_machine_pool) and self.check_if_machine_pool_exists():
log.info(f"MachinePool with name {self.pool_name} exists in cluster {self.cluster_name}. Hence reusing it")
else:
cluster_id = self.get_osd_cluster_id()
cmd = "ocm --v={} create machinepool --cluster {} --instance-type {} --replicas {} --taints {} {}".format(
self.ocm_verbose_level,
self.cluster_name,
self.cluster_id,
self.pool_instance_type,
self.pool_node_count,
self.taints,
Expand Down

0 comments on commit 5db9e26

Please sign in to comment.