Skip to content

Commit

Permalink
chore: change the node to node-type in service details
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiyana committed Dec 14, 2023
1 parent 381d191 commit d84eb04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parachain/parachain.star
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def start_local_parachain_node(plan, args, parachain_config, para_id):
parachain_detail["prometheus_port"] = parachain_spawn_detail.ports["metrics"].number
parachain_detail["ip_address"] = parachain_spawn_detail.ip_address
parachain_detail["prometheus"] = node["prometheus"]
parachain_detail["node"] = node["node-type"]
parachain_detail["node-type"] = node["node-type"]
parachain_final[parachain_spawn_detail.name] = parachain_detail
return parachain_final

Expand Down Expand Up @@ -202,7 +202,7 @@ def run_testnet_mainnet(plan, parachain, args):
node_info["ip_address"] = node_details.ip_address
node_info["prometheus_port"] = node_details.ports["metrics"].number
node_info["prometheus"] = node["prometheus"]
node_info["node"] = node["node-type"]
node_info["node-type"] = node["node-type"]
final_parachain_info[node_details.name] = node_info

else:
Expand All @@ -215,6 +215,6 @@ def run_testnet_mainnet(plan, parachain, args):
node_info["ip_address"] = node_details.ip_address
node_info["prometheus_port"] = node_details.ports["metrics"].number
node_info["prometheus"] = node["prometheus"]
node_info["node"] = node["node-type"]
node_info["node-type"] = node["node-type"]
final_parachain_info[node_details.name] = node_info
return final_parachain_info
2 changes: 2 additions & 0 deletions relaychain/relay-chain.star
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def start_relay_chain(plan, args):
relay_node_details["prometheus_port"] = service_details.ports["metrics"].number
relay_node_details["prometheus"] = relay_node["prometheus"]
relay_node_details["ip_address"] = service_details.ip_address
relay_detail["node-type"] = node["node-type"]
final_details[service_details.name] = relay_node_details

return final_details
Expand Down Expand Up @@ -116,6 +117,7 @@ def start_relay_chains_local(plan, args):
relay_detail["prometheus_port"] = service_details.ports["metrics"].number
relay_detail["prometheus"] = node["prometheus"]
relay_detail["ip_address"] = service_details.ip_address
relay_detail["node-type"] = node["node-type"]
final_details[service_details.name] = relay_detail
prometheus_port = prometheus_port + 1

Expand Down

0 comments on commit d84eb04

Please sign in to comment.