In some cases device check causes an exception

Fixes bug 1035669

Check the stderr in addition to checking the return codes.

Change-Id: I05e469302bc502b540b0c4af5fbd9c712a9bd309
This commit is contained in:
Gary Kotton 2012-08-11 12:58:18 -04:00
parent b45d4eb280
commit 77c90dbc96
1 changed files with 3 additions and 1 deletions

View File

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