Skip to content

Commit

Permalink
Use cluster id while adding machinepool (#1324)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5db9e26)
  • Loading branch information
tarukumar authored and jstourac committed Mar 27, 2024
1 parent 6b568e1 commit 1ef8bb5
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 1ef8bb5

Please sign in to comment.