From: Nikos Skalkotos Date: Thu, 19 Apr 2012 12:58:57 +0000 (+0300) Subject: Fix typos in var names X-Git-Tag: v0.1~110 X-Git-Url: https://code.grnet.gr/git/snf-image-creator/commitdiff_plain/6f319b6a89c476269783e4b89a60e393bf56f38a Fix typos in var names --- diff --git a/image_creator/disk.py b/image_creator/disk.py index be728a2..01ff41d 100644 --- a/image_creator/disk.py +++ b/image_creator/disk.py @@ -275,11 +275,11 @@ class DiskDevice(object): self.g.e2fsck_f(part_dev) self.g.resize2fs_M(part_dev) - output = self.g.tune2fs_l(part_dev) + out = self.g.tune2fs_l(part_dev) block_size = int( - filter(lambda x: x[0] == 'Block size', output)[0][1]) + filter(lambda x: x[0] == 'Block size', out)[0][1]) block_cnt = int( - filter(lambda x: x[0] == 'Block count', output)[0][1]) + filter(lambda x: x[0] == 'Block count', out)[0][1]) sector_size = self.g.blockdev_getss(dev) diff --git a/image_creator/os_type/__init__.py b/image_creator/os_type/__init__.py index 1383807..fc06ff9 100644 --- a/image_creator/os_type/__init__.py +++ b/image_creator/os_type/__init__.py @@ -191,7 +191,7 @@ class OSBase(object): output('Preparing system for image creation:') - tasks, _ = self.list_sysprep() + tasks, _ = self.list_syspreps() size = len(tasks) cnt = 0 for task in tasks: