Commit 957e947f authored by André Anjos's avatar André Anjos 💬

[execution] Use Python's subprocess module to query 'describe' as that can be...

[execution] Use Python's subprocess module to query 'describe' as that can be used in a threaded environment
parent 1b570c89
Pipeline #1902 passed with stage
......@@ -32,12 +32,13 @@ import os
import sys
import glob
import errno
import logging
import tempfile
import subprocess
import logging
logger = logging.getLogger(__name__)
import simplejson
import gevent.subprocess
from . import schema
from . import database
......@@ -47,7 +48,6 @@ from . import outputs
from . import data
from . import stats
from . import agent
from . import async
def parse_stdout(data):
......@@ -124,7 +124,7 @@ def discover_environments(envpath, raise_on_errors=True):
description = simplejson.loads(gevent.subprocess.check_output(describe))
description = simplejson.loads(subprocess.check_output(describe))
except Exception as e:
logger.warn("Ignoring potential environment at `%s' since " \
"`describe' returned an error: %s", envdir, str(e))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment