Skip to content
Snippets Groups Projects
Commit b1aea98e authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Minor cleanup (typos, comments, etc)

parent 42ace959
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,7 @@ class DiskDevice(object):
self.root = roots[0]
self.ostype = self.g.inspect_get_type(self.root)
self.distro = self.g.inspect_get_distro(self.root)
success('found a %s system' % self.distro)
success('found a(n) %s system' % self.distro)
def destroy(self):
"""Destroy this DiskDevice instance."""
......
......@@ -80,7 +80,7 @@ class Kamaki:
self.uploaded_object = None
def upload(self, file_obj, size=None, remote_path=None, hp=None, up=None):
"""Upload a file to pithos"""
if remote_path is None:
remote_path = basename(filename)
......@@ -101,7 +101,7 @@ class Kamaki:
raise FatalError("Pithos client: %d %s" % (e.status, e.message))
def register(self, name, location, metadata):
"""Register an image to ~okeanos"""
params = {'is_public': 'true', 'disk_format': 'diskdump'}
try:
self.image_client.register(name, location, params, metadata)
......
......@@ -240,7 +240,7 @@ def image_creator():
output()
if options.register:
output('Registing image to ~okeanos...', False)
output('Registring image to ~okeanos...', False)
kamaki.register(options.register, uploaded_obj, metadata)
success('done')
output()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment