uskudnik / amazon-glacier-cmd-interface

Command line interface for Amazon Glacier
MIT License
374 stars 100 forks source link

Finally bookkeeping=False or bookkeeping=True is handled correctly! #88

Closed wvmarle closed 11 years ago

wvmarle commented 11 years ago

The problem: default("bookkeeping") gives the result 'True' or 'False' as string value, not the boolean True or boolean False. So we must use string comparison, not boolean comparison. Tricky!

Also added check in sdb_connect that we actually have a domain if bookkeeping is switched on; if not it throws an exception telling the user to set a domain or to switch off bookkeeping alltogether.