From 6f319b6a89c476269783e4b89a60e393bf56f38a Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Thu, 19 Apr 2012 15:58:57 +0300 Subject: [PATCH] Fix typos in var names --- image_creator/disk.py | 6 +++--- image_creator/os_type/__init__.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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: -- 1.7.10.4