Skip to content

Commit 94182f8

Browse files
committed
Update resource-hook.md
1 parent e3c2684 commit 94182f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/software/container-engine/resource-hook.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This can be done in multiple ways in TOML: for example, both of the following us
3131

3232
* An assignment can implicitly define subtables if the key you assign is a dotted list. As a reference, see the examples made earlier in this section, where assigning a string to the `com.hooks.ssh.enabled` attribute within the `[annotations]` table is exactly equivalent to assigning to the `enabled` attribute within the `[annotations.com.hooks.ssh]` subtable.
3333

34-
* Attributes can be added to a table only in one place in the TOML file. In other words, each table must be defined in a single square bracket section. For example, Case 3 in the example below is invalid because the `ssh` table was doubly defined both in the `[annotations]` and in the `[annotations.com.hooks.ssh]` sections. See the [TOML format](https://toml.io/en/) spec for more details.
34+
* Attributes can be added to a table only in one place in the TOML file. In other words, each table must be defined in a single square bracket section. See the [TOML format](https://toml.io/en/) spec for more details.
3535

3636
```bash title="Valid"
3737
[annotations.com.hooks.ssh]
@@ -49,9 +49,10 @@ This can be done in multiple ways in TOML: for example, both of the following us
4949
[annotations]
5050
com.hooks.ssh.authorize_ssh_key = "${SCRATCH}/tests/edf/authorized_keys"
5151

52-
[annotations.com.hooks.ssh]
52+
[annotations.com.hooks.ssh] # (1)
5353
enabled = "true"
5454
```
55+
1. The `ssh` table was doubly defined both in the `[annotations]` and in the `[annotations.com.hooks.ssh]` sections.
5556

5657
## Accessing native resources
5758

0 commit comments

Comments
 (0)