Merge "Imagebackend should call processutils.execute directly."

This commit is contained in:
Zuul 2018-12-15 03:59:44 +00:00 committed by Gerrit Code Review
commit f05daa7905
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class Image(object):
if (self.preallocate and self._can_fallocate() and
os.access(self.path, os.W_OK)):
utils.execute('fallocate', '-n', '-l', size, self.path)
processutils.execute('fallocate', '-n', '-l', size, self.path)
def _can_fallocate(self):
"""Check once per class, whether fallocate(1) is available,