]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
In some cases device check causes an exception
authorGary Kotton <gkotton@redhat.com>
Sat, 11 Aug 2012 16:58:18 +0000 (12:58 -0400)
committerGary Kotton <gkotton@redhat.com>
Sun, 12 Aug 2012 05:19:07 +0000 (01:19 -0400)
Fixes bug 1035669

Check the stderr in addition to checking the return codes.

Change-Id: I05e469302bc502b540b0c4af5fbd9c712a9bd309

quantum/agent/linux/utils.py

index bb218a0abefe68939a4e58c76ec8d72ecf518bd5..70f09414f0e1106faf979e7ca2778f59e28f455c 100644 (file)
@@ -23,7 +23,9 @@ import os
 import shlex
 import socket
 import struct
-import subprocess
+
+from eventlet.green import subprocess
+
 
 LOG = logging.getLogger(__name__)