Fix typo in download overwrite
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 17 Dec 2013 13:22:03 +0000 (15:22 +0200)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 17 Dec 2013 13:58:52 +0000 (15:58 +0200)
kamaki/cli/commands/pithos.py

index 9546ba2..763decc 100644 (file)
@@ -1208,7 +1208,7 @@ class file_download(_pithos_container):
             #  Remote object is just a file
             if path.exists(local_path) and not self['resume']:
                 raise CLIError(
-                    'Cannot overwrite local file %s' % (lpath),
+                    'Cannot overwrite local file %s' % (local_path),
                     details=['To overwrite/resume, use  %s' % (
                         self.arguments['resume'].lvalue)])
             ret.append((rpath, local_path, self['resume']))