Commit 90157c2a authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] Use proper env variable for container uuid

This patch fixes the daemon code to include the container uuid in the
environment of the command, while changing that environment variable to
use a better suited name.
parent 7786fb66
......@@ -108,7 +108,7 @@ class DownstreamApplication(object):
# retrieve our container uuid
self.container_uuid = os.environ.get('container')
self.container_uuid = os.environ.get('ARGO_CONTAINER_UUID')
if self.container_uuid is None:
logger.error("missing container uuid")
......@@ -49,11 +49,11 @@ class ContainerManager(object):
environ['AC_APP_NAME'] =
environ['AC_METADATA_URL'] = "localhost"
environ['container'] = 'argo'"run: environ: %r", environ)
# create container
container_name = request['uuid']
environ['ARGO_CONTAINER_UUID'] = container_name"creating container %s", container_name)
self.nodeos.create(container_name, allocation)"created container %s", container_name)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment