INNER CODE UNIT · Python

run

LINBIT/linstor-server · scripts/linstor-controller-ha-setup.py:143

def run(cmd, check=True, capture=False):
    print("+ " + " ".join(cmd), flush=True)
    return _run(cmd, check=check, capture=capture)


def out(cmd):
    return _run(cmd, check=True, capture=True).stdout


CONTROLLER_URI = "linstor://localhost"

_linstor_conn = []


def linstor_api():
    """A connected python-linstor client for the controller on this node.

    The library is imported here and not at the top: preflight() may still have

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…