KevinHorvatin / google-apps-for-your-domain-ldap-sync

Automatically exported from code.google.com/p/google-apps-for-your-domain-ldap-sync
0 stars 0 forks source link

Error when invoking attrlist without arguments #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the command attrList without specify some action.
2.
3.

What is the expected output? What do you see instead?

I see this ouput:

Copyright 2006, Google, Inc.
All Rights Reserved.
Setting logging level to 20
Command: attrList
Traceback (most recent call last):
  File "/usr/local/share/gafyd-ldap-sync/sync_ldap.py", line 178, in ?
    (config, ldap_context, user_database, google_context, log_config) = \
  File "/usr/local/share/gafyd-ldap-sync/sync_ldap.py", line 107, in 
DoMain
    cmd.cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/local/share/gafyd-ldap-sync/commands.py", line 448, in 
do_attrList
    if len(toks) < 2:
UnboundLocalError: local variable 'toks' referenced before assignment

What version of the product are you using? On what operating system?

Google Apps LDAP Sync v1.2. Linux

Please provide any additional information below.

I attach a patch that solve this minor problem.

Original issue reported on code.google.com by aplatan...@gulic.org on 18 Mar 2008 at 12:13

Attachments: