aankit / google-apps-shell

Automatically exported from code.google.com/p/google-apps-shell
0 stars 0 forks source link

update_vacation fails #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Run Gasi or gas from cmd line (same error)
2.use command update_vacation user_name=<userName> enable=true subject="Thanks 
for your email." message="The person you are trying to reach has moved to a new 
role."

Error Returned. User vacation responder not updated.

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

Expect user vacation responder to be updated.  Am seeing python error as 
follows:
Traceback (most recent call last):
  File "gas.py", line 935, in <module>
    __main__()
  File "gas.py", line 932, in __main__
    execute(args[1:])
  File "gas.py", line 923, in execute
    whitelist_functions[call_function](credential, **dictionary)
  File "gas.py", line 588, in update_vacation
    contacts_only = str_to_bool(enable)
  File "gas.py", line 43, in str_to_bool
    string = string.lower()
AttributeError: 'bool' object has no attribute 'lower'

What version of the product are you using? On what operating system?
Using GASI 1.1.7 
OSX 10.6.8
Tried Python 2.6.1 and 2.7.2

Please provide any additional information below.

Original issue reported on code.google.com by kevin.mo...@reputation.com on 23 Dec 2011 at 8:02