mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-09 05:27:17 +00:00
Apply some suggestions.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
e74033eac1
commit
fa6058afcb
4 changed files with 4 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ def __map_channel(channel_name):
|
|||
return __channel_map[channel_name]
|
||||
|
||||
|
||||
def sdkmanager_runner(module: AnsibleModule, **kwargs):
|
||||
def sdkmanager_runner(module: AnsibleModule, **kwargs) -> CmdRunner:
|
||||
return CmdRunner(
|
||||
module,
|
||||
command="sdkmanager",
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class BtrfsCommands:
|
|||
self.__module = module
|
||||
self.__btrfs: str = self.__module.get_bin_path("btrfs", required=True)
|
||||
|
||||
def filesystem_show(self):
|
||||
def filesystem_show(self) -> list[dict[str, t.Any]]:
|
||||
command = f"{self.__btrfs} filesystem show -d"
|
||||
result = self.__module.run_command(command, check_rc=True)
|
||||
stdout = [x.strip() for x in result[1].splitlines()]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from ansible.module_utils.basic import AnsibleModule
|
|||
from ansible_collections.community.general.plugins.module_utils.cmd_runner import CmdRunner, cmd_runner_fmt
|
||||
|
||||
|
||||
def gio_mime_runner(module: AnsibleModule, **kwargs):
|
||||
def gio_mime_runner(module: AnsibleModule, **kwargs) -> CmdRunner:
|
||||
return CmdRunner(
|
||||
module,
|
||||
command=["gio"],
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ HEALTH_OK = 5
|
|||
|
||||
|
||||
class OcapiUtils:
|
||||
def __init__(self, creds, base_uri, proxy_slot_number, timeout, module: AnsibleModule):
|
||||
def __init__(self, creds, base_uri, proxy_slot_number, timeout, module: AnsibleModule) -> None:
|
||||
self.root_uri = base_uri
|
||||
self.proxy_slot_number = proxy_slot_number
|
||||
self.creds = creds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue