]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: add _require_user_exists() to check if a user exists
authorLuis Henriques <lhenriques@suse.de>
Mon, 27 Sep 2021 10:58:42 +0000 (11:58 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Oct 2021 13:33:26 +0000 (21:33 +0800)
commit7a2cdfa745aa66ad8640952dde715b85445d0bf4
tree960144e45ffb6efb5d556d79d32ae67a6a71d2e0
parent344319453e8cfaf3abee5566fff22e29f81c3596
common/rc: add _require_user_exists() to check if a user exists

Function _require_user() does check if a user exists *and* if it is able
to execute commands.  Add a new function to simply check if a user exists.

Signed-off-by: Luis Henriques <lhenriques@suse.de>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc