Fix bug with bool convertion in file list
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 22 Oct 2013 13:06:54 +0000 (16:06 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 22 Oct 2013 13:06:54 +0000 (16:06 +0300)
kamaki/cli/commands/pithos.py

index 7297892..416e2e0 100644 (file)
@@ -459,7 +459,8 @@ class file_list(_file_container_command, _optional_json, _name_filter):
             if self['recursive']:
                 self._create_object_forest(files)
         else:
-            prefix = (self.path and not self['name']) or self['name_pref']
+            prefix = (
+                self.path if not self['name'] else '') or self['name_pref']
             r = self.client.container_get(
                 limit=False if self['more'] else self['limit'],
                 marker=self['marker'],