Commit a2c1121b authored by Stavros Sachtouris's avatar Stavros Sachtouris

Print public url in "kamaki file upload --public"

Closes grnet/kamaki#89
parent 86a7211b
......@@ -1093,6 +1093,10 @@ class file_upload(_PithosContainer):
raise
finally:
self._safe_progress_bar_finish(progress_bar)
if self['public']:
obj = self.client.get_object_info(rpath)
self.write('%s\n' % obj.get('x-object-public', ''))
self.error('Upload completed')
def main(self, local_path, remote_path_or_url=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment