Revision b1aea98e image_creator/kamaki_wrapper.py
b/image_creator/kamaki_wrapper.py | ||
---|---|---|
80 | 80 |
self.uploaded_object = None |
81 | 81 |
|
82 | 82 |
def upload(self, file_obj, size=None, remote_path=None, hp=None, up=None): |
83 |
|
|
83 |
"""Upload a file to pithos""" |
|
84 | 84 |
if remote_path is None: |
85 | 85 |
remote_path = basename(filename) |
86 | 86 |
|
... | ... | |
101 | 101 |
raise FatalError("Pithos client: %d %s" % (e.status, e.message)) |
102 | 102 |
|
103 | 103 |
def register(self, name, location, metadata): |
104 |
|
|
104 |
"""Register an image to ~okeanos""" |
|
105 | 105 |
params = {'is_public': 'true', 'disk_format': 'diskdump'} |
106 | 106 |
try: |
107 | 107 |
self.image_client.register(name, location, params, metadata) |
Also available in: Unified diff