Commit 966c0e3e authored by Cage, Gregory's avatar Cage, Gregory
Browse files

Merge branch '135-raise-exception-monitor' into 'dev'

Raise exception if exit code is not 0 in container monitoring port parsing

Closes #135

See merge request !114
parents 586cc01c ac6fbdf0
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ def parse_ports(container_name, connection_configuration):
                stdout_file.seek(0)
                ports_raw = stdout_file.read().decode("utf-8")
                return ports_raw

            else:
                raise Exception("Could not find port.")

def get_ip_command(cmd) -> str:
    return subprocess.check_output(shlex.split(cmd), text=True).strip()