Commit 2344824c authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[fix] have command provide a default uuid

Previous merges let the cmd send an empty container uuid, resulting in
some issues when the user doesn't provide one. Restore the previous
parent fd393d12
......@@ -6,6 +6,7 @@ import logging
import signal
import os
import nrm.messaging
import uuid
RPC_MSG = nrm.messaging.MSGTYPES['up_rpc_req']
logger = logging.getLogger('nrm')
......@@ -49,7 +50,7 @@ class CommandLineInterface(object):
'path': argv.command,
'args': argv.args,
'environ': dict(environ),
'container_uuid': str(argv.ucontainername),
'container_uuid': argv.ucontainername or str(uuid.uuid4()),
msg = RPC_MSG['run'](**command)
# command fsm
Supports Markdown
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