diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2010-07-25 16:44:09 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-07-25 16:44:09 +0000 |
| commit | 3e39781e12645388327dbccfb023c282fa3c4563 (patch) | |
| tree | e2bd5f244a56316d1cf3d15b5500852f30ba07ab | |
| parent | 7050e7e49e8aad3ff3f5d0060c96ff97d9c2852f (diff) | |
| parent | a0c29a822aaed756728f2619e176d8c54bb1d4e9 (diff) | |
Adds missing yield statement that was causing partitioning to intermittently fail.
| -rw-r--r-- | nova/compute/disk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/compute/disk.py b/nova/compute/disk.py index 08a22556e..7e31498e5 100644 --- a/nova/compute/disk.py +++ b/nova/compute/disk.py @@ -64,8 +64,8 @@ def partition(infile, outfile, local_bytes=0, local_type='ext2', execute=None): last_sector = local_last # e # create an empty file - execute('dd if=/dev/zero of=%s count=1 seek=%d bs=%d' - % (outfile, last_sector, sector_size)) + yield execute('dd if=/dev/zero of=%s count=1 seek=%d bs=%d' + % (outfile, last_sector, sector_size)) # make mbr partition yield execute('parted --script %s mklabel msdos' % outfile) |
