INNER CODE UNIT · Python
responses
LINBIT/linstor-server · scripts/linstor-controller-ha-setup.py:198
responses = call(*call_args, **call_kwargs)
for response in responses:
if response.is_error():
die(what + " failed: " + response.message)
return responses
def die(msg):
print("ERROR: " + msg, file=sys.stderr)
sys.exit(1)
def local_node(cluster_nodes=None):
"""This node's name as LINSTOR knows it.
Node names are whatever was registered: short on some clusters, fully
qualified on others. Match the local hostname against the cluster's own
list rather than assuming one form -- stripping the domain unconditionally