Commit 4cf28409 authored by Jaroslava Fiedlerova's avatar Jaroslava Fiedlerova

Use splitlines,fix gNB undeployment and log analysis

parent 58fbf70f
...@@ -1072,11 +1072,11 @@ class Containerize(): ...@@ -1072,11 +1072,11 @@ class Containerize():
mySSH.command(f'docker-compose -f ci-docker-compose.yml config --services', '\$', 5) mySSH.command(f'docker-compose -f ci-docker-compose.yml config --services', '\$', 5)
# first line has command, last line has next command prompt # first line has command, last line has next command prompt
allServices = mySSH.getBefore().split('\r\n')[1:-1] allServices = mySSH.getBefore().splitlines()[1:-1]
services = [] services = []
for s in allServices: for s in allServices:
mySSH.command(f'docker-compose -f ci-docker-compose.yml ps --all -- {s}', '\$', 5, silent=False) mySSH.command(f'docker-compose -f ci-docker-compose.yml ps --all -- {s}', '\$', 5, silent=False)
running = mySSH.getBefore().split('\r\n')[2:-1] running = mySSH.getBefore().splitlines()[2:-1]
logging.debug(f'running services: {running}') logging.debug(f'running services: {running}')
if len(running) > 0: # something is running for that service if len(running) > 0: # something is running for that service
services.append(s) services.append(s)
......
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