3 from PLC.Method import Method
4 from PLC.Parameter import Parameter
5 from PLC.Auth import Auth
7 from PLC.Peers import Peer, Peers
9 class GetPeerName (Method):
11 Returns this peer's name, as defined in the config as PLC_NAME
14 roles = ['admin', 'peer', 'node']
18 returns = Peer.fields['peername']
20 def call (self, auth):
21 return self.api.config.PLC_NAME