Simplify
This commit is contained in:
parent
2b685b90be
commit
605968abb0
4 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ print(f"running garage {status.garage_version}, node_id {status.node}")
|
||||||
# Change layout of this node
|
# Change layout of this node
|
||||||
current = layout.get_layout()
|
current = layout.get_layout()
|
||||||
layout.add_layout({
|
layout.add_layout({
|
||||||
f"{status.node}": NodeClusterInfo(
|
status.node: NodeClusterInfo(
|
||||||
zone = "dc1",
|
zone = "dc1",
|
||||||
capacity = 1,
|
capacity = 1,
|
||||||
tags = [ "dev" ],
|
tags = [ "dev" ],
|
||||||
|
|
|
@ -30,7 +30,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
print("it seems to be a fresh node, continuing the configuration")
|
print("it seems to be a fresh node, continuing the configuration")
|
||||||
|
|
||||||
layout.add_layout({
|
layout.add_layout({
|
||||||
f"{status.node}": NodeClusterInfo(
|
status.node: NodeClusterInfo(
|
||||||
zone = "dc1",
|
zone = "dc1",
|
||||||
capacity = 1,
|
capacity = 1,
|
||||||
tags = [ "dev" ],
|
tags = [ "dev" ],
|
||||||
|
|
|
@ -24,7 +24,7 @@ print(f"running garage {status.garage_version}, node_id {status.node}")
|
||||||
# Change layout of this node
|
# Change layout of this node
|
||||||
current = layout.get_layout()
|
current = layout.get_layout()
|
||||||
layout.add_layout({
|
layout.add_layout({
|
||||||
f"{status.node}": NodeClusterInfo(
|
status.node: NodeClusterInfo(
|
||||||
zone = "dc1",
|
zone = "dc1",
|
||||||
capacity = 1,
|
capacity = 1,
|
||||||
tags = [ "dev" ],
|
tags = [ "dev" ],
|
||||||
|
|
2
garage
2
garage
|
@ -1 +1 @@
|
||||||
Subproject commit 7b257b21c2623fcaa1cbd0b6f5b1a60c5b789a2c
|
Subproject commit 5a7675cf7cda7c92e016a183cdc921ef97554759
|
Loading…
Reference in a new issue