diff options
| author | Jesse Andrews <jesse@aire.local> | 2011-04-12 16:46:18 -0500 |
|---|---|---|
| committer | Jesse Andrews <jesse@aire.local> | 2011-04-12 16:46:18 -0500 |
| commit | 822ec6fe3075bed4479c8e48a984bd4c9622ffe1 (patch) | |
| tree | 0535c7dfda70b21546c1e5908206bd84e5045a9c | |
| parent | 5aab609b24140622b87db970243641ec382b214e (diff) | |
| download | nova-822ec6fe3075bed4479c8e48a984bd4c9622ffe1.tar.gz nova-822ec6fe3075bed4479c8e48a984bd4c9622ffe1.tar.xz nova-822ec6fe3075bed4479c8e48a984bd4c9622ffe1.zip | |
move from try_execute to _execute
| -rw-r--r-- | nova/volume/driver.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/volume/driver.py b/nova/volume/driver.py index 0c4086039..6d86f193f 100644 --- a/nova/volume/driver.py +++ b/nova/volume/driver.py @@ -111,10 +111,10 @@ class VolumeDriver(object): # zero out old volumes to prevent data leaking between users # TODO(ja): reclaiming space should be done lazy and low priority - self._try_execute('sudo', 'dd', 'if=/dev/zero', - 'of=%s' % self.local_path(volume), - 'count=%d' % (volume['size'] * 1024), - 'bs=1M') + self._execute('sudo', 'dd', 'if=/dev/zero', + 'of=%s' % self.local_path(volume), + 'count=%d' % (volume['size'] * 1024), + 'bs=1M') self._try_execute('sudo', 'lvremove', '-f', "%s/%s" % (FLAGS.volume_group, volume['name'])) |
