summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils/partitionedfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/utils/partitionedfs.py')
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 534635b2ac..89a7c13758 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -132,7 +132,7 @@ class Image(object):
132 for num in range(len(self.partitions)): 132 for num in range(len(self.partitions)):
133 part = self.partitions[num] 133 part = self.partitions[num]
134 134
135 if not self.disks.has_key(part['disk_name']): 135 if part['disk_name'] not in self.disks:
136 raise ImageError("No disk %s for partition %s" \ 136 raise ImageError("No disk %s for partition %s" \
137 % (part['disk_name'], part['mountpoint'])) 137 % (part['disk_name'], part['mountpoint']))
138 138
@@ -236,7 +236,7 @@ class Image(object):
236 def __format_disks(self): 236 def __format_disks(self):
237 self.layout_partitions() 237 self.layout_partitions()
238 238
239 for dev in self.disks.keys(): 239 for dev in self.disks:
240 disk = self.disks[dev] 240 disk = self.disks[dev]
241 msger.debug("Initializing partition table for %s" % \ 241 msger.debug("Initializing partition table for %s" % \
242 (disk['disk'].device)) 242 (disk['disk'].device))
@@ -354,7 +354,7 @@ class Image(object):
354 os.rename(source, image_file + '.p%d' % part['num']) 354 os.rename(source, image_file + '.p%d' % part['num'])
355 355
356 def create(self): 356 def create(self):
357 for dev in self.disks.keys(): 357 for dev in self.disks:
358 disk = self.disks[dev] 358 disk = self.disks[dev]
359 disk['disk'].create() 359 disk['disk'].create()
360 360