diff --git a/pmb/chroot/__init__.py b/pmb/chroot/__init__.py index 1db3e2a0..f3a7a0e9 100644 --- a/pmb/chroot/__init__.py +++ b/pmb/chroot/__init__.py @@ -11,7 +11,7 @@ from pmb.chroot.run import ( rootm as rootm, user as user, userm as userm, - exists as user_exists, + user_exists as user_exists, ) from pmb.chroot.shutdown import shutdown as shutdown from pmb.chroot.zap import zap as zap, del_chroot as del_chroot diff --git a/pmb/chroot/run.py b/pmb/chroot/run.py index 73ee4e74..b09c3924 100644 --- a/pmb/chroot/run.py +++ b/pmb/chroot/run.py @@ -249,7 +249,7 @@ def user( return userm([cmd], chroot, working_dir, output, output_return, check, env) -def exists(username: str, chroot: Chroot = Chroot.native()) -> bool: +def user_exists(username: str, chroot: Chroot = Chroot.native()) -> bool: """ Checks if username exists in the system