Revision 929efcc3

b/lib/client/gnt_node.py
253 253
                                 fields=["name", "sip", "master",
254 254
                                         "ndp/ssh_port"],
255 255
                                 use_locking=False)
256
    node_exists, sip, is_master, ssh_port = output[0]
256
    if len(output) == 0:
257
      node_exists = ""
258
      sip = None
259
    else:
260
      node_exists, sip, is_master, ssh_port = output[0]
257 261
  except (errors.OpPrereqError, errors.OpExecError):
258 262
    node_exists = ""
259 263
    sip = None

Also available in: Unified diff