Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format using up-to-date dev dependencies #644

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docs/inventory/instance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Synopsis

Reads instance inventories from Linode.

Uses a YAML configuration file that ends with linode.(yml|yaml).
Uses a YAML configuration file that ends with linode.(yml\|yaml).

Linode labels are used by default as the hostnames.

Expand Down Expand Up @@ -76,19 +76,19 @@ Parameters


**parent_group (type=str):**
\• parent group for keyed group.
\• parent group for keyed group


**prefix (type=str):**
\• A keyed group name will start with this prefix.
\• A keyed group name will start with this prefix


**separator (type=str, default=_):**
\• separator used to build the keyed group name.
\• separator used to build the keyed group name


**key (type=str):**
\• The key from input dictionary used to generate groups.
\• The key from input dictionary used to generate groups


**default_value (type=str):**
Expand All @@ -98,7 +98,7 @@ Parameters


**trailing_separator (type=bool, default=True):**
\• Set this option to :literal:`false` to omit the :literal:`keyed\_groups[].separator` after the host variable when the value is an empty string.
\• Set this option to :literal:`False` to omit the :literal:`keyed\_groups[].separator` after the host variable when the value is an empty string.

\• This option is mutually exclusive with :literal:`keyed\_groups[].default\_value`.

Expand All @@ -109,13 +109,13 @@ Parameters


**leading_separator (type=boolean, default=True):**
\• Use in conjunction with :literal:`keyed\_groups`.
\• Use in conjunction with keyed\_groups.

\• By default, a keyed group that does not have a prefix or a separator provided will have a name that starts with an underscore.

\• This is because the default prefix is :literal:`""` and the default separator is :literal:`"\_"`.
\• This is because the default prefix is "" and the default separator is "\_".

\• Set this option to :literal:`false` to omit the leading underscore (or other separator) if no prefix is given.
\• Set this option to False to omit the leading underscore (or other separator) if no prefix is given.

\• If the group name is derived from a mapping the separator is still used to concatenate the items.

Expand Down
5 changes: 4 additions & 1 deletion plugins/module_utils/linode_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
)

try:
from linode_api4 import VPC, ApiError
from linode_api4 import (
VPC,
ApiError,
)
from linode_api4 import Base as LinodeAPIType
from linode_api4 import (
Image,
Expand Down