Skip to content

Commit

Permalink
chore: remove unused parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Matsuoka <[email protected]>
  • Loading branch information
cmatsuoka committed Jun 24, 2024
1 parent 9cb2ed5 commit 09bb92f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions craft_providers/lxd/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def install(sudo: bool = True) -> str:
return lxd.version()


def is_initialized(*, remote: str, project: str, lxc: LXC) -> bool:
def is_initialized(*, remote: str, lxc: LXC) -> bool:
"""Verify that LXD has been initialized and configuration looks valid.
If LXD has been installed but the user has not initialized it (lxd init),
Expand Down Expand Up @@ -153,11 +153,7 @@ def is_user_permitted() -> bool:


def ensure_lxd_is_ready(
*,
remote: str = "local",
project: str = "default",
lxc: LXC = LXC(),
lxd: LXD = LXD(),
*, remote: str = "local", lxc: LXC = LXC(), lxd: LXD = LXD()
) -> None:
"""Ensure LXD is ready for use.
Expand Down Expand Up @@ -189,7 +185,7 @@ def ensure_lxd_is_ready(
),
)

if not is_initialized(lxc=lxc, project=project, remote=remote):
if not is_initialized(lxc=lxc, remote=remote):
raise errors.LXDError(
brief="LXD has not been properly initialized.",
details=(
Expand Down

0 comments on commit 09bb92f

Please sign in to comment.