Skip to content

Commit b8e5252

Browse files
committed
flux-config-bootstrap(5): fix TOML error
Problem: two of the examples in flux-config-bootstrap(5) split inline tables across lines, but TOML 1.0.0 forbids newlines bewteen the curly braces unless they are valid within a value. Inline tables are described here: https://toml.io/en/v1.0.0#inline-table Change the formatting of the examples to be valid TOML 1.0.0. Note that the last example demonstrates using the "arrays of tables" syntax which may be more readable when inline tables become too long. Arrays of tables are described here: https://toml.io/en/v1.0.0#array-of-tables All the bootstrap examples were successfully run through https://www.toml-lint.com/. Fixes #5249
1 parent d9712cf commit b8e5252

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

doc/man5/flux-config-bootstrap.rst

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,8 @@ The following example is a simple, two node cluster with a fully specified
159159
curve_cert = "/etc/flux/system/curve.cert"
160160

161161
hosts = [
162-
{
163-
host="foo",
164-
bind="tcp://eth0:9001",
165-
connect="tcp://10.0.1.1:9001"
166-
},
167-
{
168-
host = "bar"
169-
},
162+
{ host="foo", bind="tcp://eth0:9001", connect="tcp://10.0.1.1:9001" },
163+
{ host = "bar" },
170164
]
171165

172166

@@ -188,14 +182,11 @@ a different network interface configuration compared to its peers.
188182
default_connect = "tcp://e%h:%p"
189183

190184
hosts = [
191-
{ # Management requires non-default config
192-
host="test0",
193-
bind="tcp://en4:9001",
194-
connect="tcp://test-mgmt:9001"
195-
},
196-
{ # Other nodes use defaults
197-
host = "test[1-255]"
198-
},
185+
# Management requires non-default config
186+
{ host="test0", bind="tcp://en4:9001", connect="tcp://test-mgmt:9001" },
187+
188+
# Other nodes use defaults
189+
{ host = "test[1-255]" },
199190
]
200191

201192
The following example is a 256 node cluster that uses the ``parent`` key to

0 commit comments

Comments
 (0)