Skip to content

Commit 31c109b

Browse files
authored
style: fix linting issues (canonical#2222)
1 parent e148af2 commit 31c109b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

docs/reference/files/charmcraft-yaml-file.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,10 @@ and the lib version (in ``"<api version>[.<patch version>]"`` string format).
362362
**Status:** Optional. Recommended for Kubernetes charms.
363363

364364
**Purpose:** The ``charm-user`` key allows charm authors to specify that their charm
365-
hook code does not need to be run as root. This key, in combination with ``uid`` + ``gid``
366-
fields in ``containers``, allows the charm to be run rootless. If set to ``root``,
367-
the charm runs as root. If set to ``sudoer`` or ``non-root``, the charm runs as a user
368-
other than root. If the value is ``sudoer``, the charm will be run as a user
365+
hook code does not need to be run as root. This key, in combination with ``uid`` and
366+
``gid`` fields in ``containers``, allows the charm to be run rootless. If set to
367+
``root``, the charm runs as root. If set to ``sudoer`` or ``non-root``, the charm runs
368+
as a user other than root. If the value is ``sudoer``, the charm will be run as a user
369369
with access to sudo to elevate its privileges.
370370

371371
**Structure:** The key consists of a single value. One of ``root``, ``sudoer`` or

docs/reference/files/metadata-yaml-file.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,10 @@ Examples:
437437
**Status:** Optional. Recommended for Kubernetes charms.
438438

439439
**Purpose:** The ``charm-user`` key allows charm authors to specify that their charm
440-
hook code does not need to be run as root. This key, in combination with ``uid`` + ``gid``
441-
fields in ``containers``, allows the charm to be run rootless. If set to ``root``,
442-
the charm runs as root. If set to ``sudoer`` or ``non-root``, the charm runs as a user
443-
other than root. If the value is ``sudoer``, the charm will be run as a user
440+
hook code does not need to be run as root. This key, in combination with ``uid`` and
441+
``gid`` fields in ``containers``, allows the charm to be run rootless. If set to
442+
``root``, the charm runs as root. If set to ``sudoer`` or ``non-root``, the charm runs
443+
as a user other than root. If the value is ``sudoer``, the charm will be run as a user
444444
with access to sudo to elevate its privileges.
445445

446446
**Structure:** The key consists of a single value. One of ``root``, ``sudoer`` or

tests/spread/smoketests/basic/charmcraft-platforms-24.04-all.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ parts:
1313
plugin: charm
1414
source: .
1515
charm-user: sudoer
16-

0 commit comments

Comments
 (0)