diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-07 17:57:52 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-11-08 20:53:08 +0100 |
commit | a53bc0a91bea89f0f284429c8fe2678891dd239b (patch) | |
tree | f44e00d02caea0684a4655daac1698b6978727a7 | |
parent | 95595dd93fd04999fcf56ecaab7c29b064d021f8 (diff) | |
download | samba-a53bc0a91bea89f0f284429c8fe2678891dd239b.tar.gz samba-a53bc0a91bea89f0f284429c8fe2678891dd239b.tar.bz2 samba-a53bc0a91bea89f0f284429c8fe2678891dd239b.zip |
s4:samba-tool - other fix for Gémes Géza patch regarding parameter handling
The condition has not been specified correctly since we are expecting a boolean.
Pointed out by Jelmer.
Reviewed-by: Jelmer
-rw-r--r-- | source4/scripting/python/samba/netcmd/user.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/user.py b/source4/scripting/python/samba/netcmd/user.py index 0ac4b23742..e45b3bfb75 100644 --- a/source4/scripting/python/samba/netcmd/user.py +++ b/source4/scripting/python/samba/netcmd/user.py @@ -106,7 +106,7 @@ Example3 shows how to create a new user in the OrgUnit organizational unit. job_title=None, department=None, company=None, description=None, mail_address=None, internet_address=None, telephone_number=None, physical_delivery_office=None): - if random_password is True: + if random_password: password = generate_random_password(128, 255) while 1: @@ -401,7 +401,7 @@ Example3 shows how an administrator would reset TestUser3 user's password to pas if filter is None and username is None: raise CommandError("Either the username or '--filter' must be specified!") - if random_password is True: + if random_password: password = generate_random_password(128, 255) else: password = newpassword |