From 2344824ca72b512324f345f18270bd75a4f012d0 Mon Sep 17 00:00:00 2001 From: Swann Perarnau Date: Wed, 24 Oct 2018 11:09:08 -0500 Subject: [PATCH] [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 behavior. --- bin/cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cmd b/bin/cmd index 8a3039a..857eab4 100755 --- a/bin/cmd +++ b/bin/cmd @@ -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 -- 2.26.2