def SplitNodeOption(value):
  if value and ":" in value:
    return value.split(":", 1)
  else:
    return (value, None)
Splits the value of a --node option.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/SplitNodeOption