def _show_normalized_node(full_node):
 public_ips = full_node.get('eip', [])
 if public_ips:
  public_ip = public_ips['eip_addr']
  public_ips = [public_ip]
 private_ips = []
 for vxnet in full_node.get('vxnets', []):
  private_ip = vxnet.get('private_ip', None)
  if private_ip:
   private_ips.append(private_ip)
 normalized_node = {'id': full_node['instance_id'], 'image': full_node['image']['image_id'], 'size': full_node['instance_type'], 'state': full_node['status'], 'private_ips': private_ips, 'public_ips': public_ips}
 return normalized_node

def _show_normalized_node ( full_node ) : public_ips = full_node . get ( 'eip' , [ ] ) if public_ips : public_ip = public_ips [ 'eip_addr' ] public_ips = [ public_ip ] private_ips = [ ] for vxnet in full_node . get ( 'vxnets' , [ ] ) : private_ip = vxnet . get ( 'private_ip' , None ) if private_ip : private_ips . append ( private_ip ) normalized_node = { 'id' : full_node [ 'instance_id' ] , 'image' : full_node [ 'image' ] [ 'image_id' ] , 'size' : full_node [ 'instance_type' ] , 'state' : full_node [ 'status' ] , 'private_ips' : private_ips , 'public_ips' : public_ips } return normalized_node
normalize the qingcloud instance data .