Skip to content

Commit

Permalink
Cleanup define masters printing
Browse files Browse the repository at this point in the history
  • Loading branch information
cvicentiu committed Feb 6, 2025
1 parent 1960ebf commit 2ff1e20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion define_masters.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,9 @@
shutil.copyfile("master-private.cfg", dir_path + "/master-private.cfg")
shutil.copyfile("buildbot.tac", dir_path + "/buildbot.tac")

print(arch, len(master_config["builders"]))
print(
"{:<20} {}".format(
f"Master {master_id} {arch}",
f'{len(master_config["builders"][arch])} builders',
)
)
2 changes: 1 addition & 1 deletion master_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def base_master_config(
# 'port' must match the value configured into the workers (with their
# --master option)
"protocols": {
"pb": {"port": master_port},
"pb": {"port": int(master_port)}, # master_port must be int
},
# This specifies what database buildbot uses to store its state.
"db": {
Expand Down

0 comments on commit 2ff1e20

Please sign in to comment.