- return {'plcname':self.api.config.PLC_NAME,
- 'new_nodes':nb_new_nodes,
- 'new_slices':nb_new_slices}
+ # make sure we have the right name for that peer
+ peername = apiserver.GetPeerName (auth)
+ peer.update_name(peername)
+
+ # we need a peer_id from there on
+ peer_id = peer['peer_id']
+
+ print 'Got peer_id',peer_id
+
+ cache = Cache (self.api, peer_id, apiserver, auth)
+ result = cache.refresh_peer ()
+ result['peername']=peername
+
+ return result