Commit ab863157 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Complete astakosclient exposition in astakos.py

Refs: #4340
parent b490a8b8
This diff is collapsed.
......@@ -451,16 +451,15 @@ class astakos_commission_issue(_astakos_init, _optional_json):
@errors.generic.all
@astakoserror
def _run(
self, holder, source, provisions, name=''):
def _run(self, holder, source, provisions, name=''):
provisions = loads(provisions)
self._print(self.client.issue_one_commission(
self.token, holder, source, provisions, name,
self['force'], self['accept']))
def main(self, holder, source, provisions, name=''):
def main(self, user_uuid, source, provisions_file, name=''):
super(self.__class__, self)._run()
self._run(holder, source, provisions, name)
self._run(user_uuid, source, provisions_file, name)
@command(snfastakos_cmds)
......
......@@ -323,8 +323,8 @@ class PithosClient(PithosRestClient):
offset += bytes
if hash_cb:
hash_gen.next()
msg = 'Failed to calculate uploaded blocks:'
' Offset and object size do not match'
msg = ('Failed to calculate uploaded blocks:'
' Offset and object size do not match')
assert offset == size, msg
def _upload_missing_blocks(self, missing, hmap, fileobj, upload_gen=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