Skip to content

Commit

Permalink
add default value for master-node when provisioning cluster using OSB
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Oviedo <[email protected]>
  • Loading branch information
OVI3D0 committed Aug 19, 2024
1 parent fa1adf2 commit 5a02add
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions osbenchmark/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ def install(cfg):
master_nodes = cfg.opts("builder", "master.nodes")
seed_hosts = cfg.opts("builder", "seed.hosts")

# Ensure node_name and master_nodes match, using node_name as the default
if node_name not in master_nodes:
print(
f"The provided --node-name '{node_name}' and --master-nodes '{master_nodes}' are different. "
f"Using '{node_name}' for both node name and initial master node."
)
master_nodes = [node_name]

if build_type == "tar":
binary_supplier = supplier.create(cfg, sources, distribution, provision_config_instance, plugins)
p = provisioner.local(cfg=cfg, provision_config_instance=provision_config_instance, plugins=plugins, ip=ip, http_port=http_port,
Expand Down

0 comments on commit 5a02add

Please sign in to comment.