Hide Forgot
Description of problem: Without '--dstdir', "zanata po pull" works well. However, when given zanata po pull --dstdir=/tmp it throws error messages. Version-Release number of selected component (if applicable): zanata-python-client-1.2.2 Server: 1.2 (20110307-0010) How reproducible: Always Steps to Reproduce: 1. Assume zanata.ini zanata.xml are properly configured. 2. zanata po pull --dstdir=/tmp --url=<serverUrl> 3. Actual results: Traceback (most recent call last): File "/tmp/zanata-python-client/zanata", line 26, in <module> client.run() File "/tmp/zanata-python-client/zanataclient/zanata.py", line 1436, in run self._pull_pofile(command_args) File "/tmp/zanata-python-client/zanataclient/zanata.py", line 850, in _pull_pofile pofile = os.path.join(outpath, item+'.po') UnboundLocalError: local variable 'outpath' referenced before assignment Expected results: Po files are pulled to /tmp Additional info:
I have fix this issue in commit 7f0f3d0d1014adb1b57b, but please verify this issue with commit 0e90977fe121820a6ca8 of devel branch of zanataclient on github,since i merge some changes from server.
Test passed with commit b1df3d6c9a5a58ab65c13b0366a24b1a2b31c988