diff options
author | Michael Still <mikal@stillhq.com> | 2018-11-26 15:01:38 +1100 |
---|---|---|
committer | Michael Still <mikal@stillhq.com> | 2018-12-12 09:38:20 +1100 |
commit | 225aa877216dae83850f63f420667c054d93847b (patch) | |
tree | d4592a36df40cefc5057635c22f2722159abccae /nova/virt/images.py | |
parent | fd4fb2ec0def088e7aba5da3c7037be5b3181625 (diff) | |
download | nova-225aa877216dae83850f63f420667c054d93847b.tar.gz |
Remove the final user of utils.execute() from virt.images
Change-Id: Ic2ff70c73c4528d9d92b5b0aa225558e451cb819
Diffstat (limited to 'nova/virt/images.py')
-rw-r--r-- | nova/virt/images.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/virt/images.py b/nova/virt/images.py index 2f04f86eef..ec7c9edc7a 100644 --- a/nova/virt/images.py +++ b/nova/virt/images.py @@ -34,7 +34,6 @@ from nova import exception from nova.i18n import _ from nova import image import nova.privsep.qemu -from nova import utils LOG = logging.getLogger(__name__) @@ -72,7 +71,7 @@ def qemu_img_info(path, format=None): # to add the --force-share flag. if QEMU_VERSION and operator.ge(QEMU_VERSION, QEMU_VERSION_REQ_SHARED): cmd = cmd + ('--force-share',) - out, err = utils.execute(*cmd, prlimit=QEMU_IMG_LIMITS) + out, err = processutils.execute(*cmd, prlimit=QEMU_IMG_LIMITS) except processutils.ProcessExecutionError as exp: if exp.exit_code == -9: # this means we hit prlimits, make the exception more specific |