change in utils to allow string list for bash commands
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/osm_ee/util/util_ee.py b/osm_ee/util/util_ee.py
index 1d0a232..6eb8cb5 100644
--- a/osm_ee/util/util_ee.py
+++ b/osm_ee/util/util_ee.py
@@ -33,7 +33,11 @@
Executed a local command using asyncio.
TODO - do not know yet if return error code, and stdout and strerr or just one of them
"""
- scommand = split(command)
+ if isinstance(command, str):
+ scommand = split(command)
+ else # isinstance(command, (list, tuple)):
+ scommand = command
+
logger.debug("Execute local command: {}".format(command))
process = await asyncio.create_subprocess_exec(