Revision 8e3065a0 image_creator/kamaki_wrapper.py

b/image_creator/kamaki_wrapper.py
38 38
from kamaki.clients.image import ImageClient
39 39
from kamaki.clients.pithos import PithosClient
40 40

  
41
from image_creator.util import FatalError
41
from image_creator.util import FatalError, progress
42 42

  
43 43
CONTAINER = "images"
44 44

  
......
73 73
                    raise FatalError("Pithos client: %d %s" % \
74 74
                                                        (e.status, e.message))
75 75
            try:
76
                self.pithos_client.create_object(remote_path, f, size)
76
		hash_progress = progress("(1/2)  Calculating block hashes:")
77
		upload_progress = progress("(2/2)  Uploading missing blocks:")
78
                self.pithos_client.create_object(remote_path, f, size,
79
						hash_progress, upload_progress)
77 80
                self.uploaded_object = "pithos://%s/%s/%s" % \
78 81
                                (self.account, self.container, remote_path)
79 82
            except ClientError as e:

Also available in: Unified diff