From 77c90dbc960b0736a13d54f80b42f8a24667d627 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sat, 11 Aug 2012 12:58:18 -0400 Subject: [PATCH] In some cases device check causes an exception Fixes bug 1035669 Check the stderr in addition to checking the return codes. Change-Id: I05e469302bc502b540b0c4af5fbd9c712a9bd309 --- quantum/agent/linux/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quantum/agent/linux/utils.py b/quantum/agent/linux/utils.py index bb218a0ab..70f09414f 100644 --- a/quantum/agent/linux/utils.py +++ b/quantum/agent/linux/utils.py @@ -23,7 +23,9 @@ import os import shlex import socket import struct -import subprocess + +from eventlet.green import subprocess + LOG = logging.getLogger(__name__) -- 2.45.2