fix readme python code
This commit is contained in:
parent
1428c6d627
commit
f3cc4f21dc
1 changed files with 5 additions and 4 deletions
|
@ -55,13 +55,14 @@ 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([
|
||||||
status.node: NodeClusterInfo(
|
NodeRoleChange(
|
||||||
|
id = status.node,
|
||||||
zone = "dc1",
|
zone = "dc1",
|
||||||
capacity = 1,
|
capacity = 1000000000,
|
||||||
tags = [ "dev" ],
|
tags = [ "dev" ],
|
||||||
)
|
)
|
||||||
})
|
])
|
||||||
layout.apply_layout(LayoutVersion(
|
layout.apply_layout(LayoutVersion(
|
||||||
version = current.version + 1
|
version = current.version + 1
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in a new issue