Changeset - 6a15b5ae5ea5
[Not reviewed]
0 1 0
Lance Edgar (lance) - 6 months ago 2023-11-06 21:25:13
lance@edbob.org
Add docstring to explain param
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail_fabric2/core.py
Show inline comments
 
@@ -129,11 +129,15 @@ def mkdir(c, paths, owner=None, mode=None,
 

	
 

	
 
def make_normal_user(c, username, full_name=None,
 
                     # TODO: ugh why is this true by default..should change that
 
                     disabled_login=True,
 
                     password=None):
 
    """
 
    Make a new "normal" user account.
 

	
 
    :param disabled_login: If true (the default), add the
 
       ``--disabled-login`` flag to the ``adduser`` command.  The
 
       reason this is the default, is to avoid being prompted for a
 
       password to give the new account.
 
    """
 
    if not c.run('getent passwd {}'.format(username), warn=True).failed:
 
        return
0 comments (0 inline, 0 general)