def get_node_info():
 nodes = [{NodeInfoTags.HOST: get_br_service_url(appscale_info.get_db_master_ip()), NodeInfoTags.ROLE: 'db_master', NodeInfoTags.INDEX: None}]
 index = 0
 for node in appscale_info.get_db_slave_ips():
  host = get_br_service_url(node)
  if (host not in nodes[0].values()):
   nodes.append({NodeInfoTags.HOST: host, NodeInfoTags.ROLE: 'db_slave', NodeInfoTags.INDEX: index})
   index += 1
 index = 0
 for node in appscale_info.get_zk_node_ips():
  nodes.append({NodeInfoTags.HOST: get_br_service_url(node), NodeInfoTags.ROLE: 'zk', NodeInfoTags.INDEX: index})
  index += 1
 return nodes

def get_node_info ( ) : nodes = [ { NodeInfoTags . HOST : get_br_service_url ( appscale_info . get_db_master_ip ( ) ) , NodeInfoTags . ROLE : 'db_master' , NodeInfoTags . INDEX : None } ] index = 0 for node in appscale_info . get_db_slave_ips ( ) : host = get_br_service_url ( node ) if ( host not in nodes [ 0 ] . values ( ) ) : nodes . append ( { NodeInfoTags . HOST : host , NodeInfoTags . ROLE : 'db_slave' , NodeInfoTags . INDEX : index } ) index += 1 index = 0 for node in appscale_info . get_zk_node_ips ( ) : nodes . append ( { NodeInfoTags . HOST : get_br_service_url ( node ) , NodeInfoTags . ROLE : 'zk' , NodeInfoTags . INDEX : index } ) index += 1 return nodes
creates a list of json objects that contain node information and are needed to perform a backup/restore task on the current appscale deployment .