typo fix
authorHuanhuan Li <huanhuanx.li@intel.com>
Mon, 31 Mar 2014 06:31:22 +0000 (14:31 +0800)
committerHuanhuan Li <huanhuanx.li@intel.com>
Mon, 31 Mar 2014 06:31:56 +0000 (14:31 +0800)
Change-Id: Id8a274534f299381453dda400308a1073c6f4b99

mic/utils/partitionedfs.py

index d0aa652..d07bd39 100644 (file)
@@ -367,12 +367,12 @@ class PartitionedMount(Mount):
                 continue
 
             pnum = 0
-            gpt_parser = GptParser(d['disk'].device, SECTOR_SIZE)
+            gpt_parser = GptParser(disk['disk'].device, SECTOR_SIZE)
             # Iterate over all GPT partitions on this disk
             for entry in gpt_parser.get_partitions():
                 pnum += 1
                 # Find the matching partition in the 'self.partitions' list
-                for n in d['partitions']:
+                for n in disk['partitions']:
                     p = self.partitions[n]
                     if p['num'] == pnum:
                         # Found, fetch PARTUUID (partition's unique ID)