From b1aea98e08ba089bf9199fff0f37f5a468951b8b Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Tue, 24 Apr 2012 15:54:25 +0300 Subject: [PATCH] Minor cleanup (typos, comments, etc) --- image_creator/disk.py | 2 +- image_creator/kamaki_wrapper.py | 4 ++-- image_creator/main.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/image_creator/disk.py b/image_creator/disk.py index 71c7f17..287921a 100644 --- a/image_creator/disk.py +++ b/image_creator/disk.py @@ -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.""" diff --git a/image_creator/kamaki_wrapper.py b/image_creator/kamaki_wrapper.py index 56fd382..ffe0158 100644 --- a/image_creator/kamaki_wrapper.py +++ b/image_creator/kamaki_wrapper.py @@ -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) diff --git a/image_creator/main.py b/image_creator/main.py index 86b74cc..4a289c5 100755 --- a/image_creator/main.py +++ b/image_creator/main.py @@ -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() -- 1.7.10.4