2 from PLC.Method import Method
3 from PLC.Parameter import Parameter
4 from PLC.Auth import Auth
6 from PLC.Peers import Peer, Peers
8 class GetPeerName (Method):
10 Returns this peer's name, as defined in the config as PLC_NAME
13 roles = ['admin', 'peer', 'node']
17 returns = Peer.fields['peername']
19 def call (self, auth):
20 return self.api.config.PLC_NAME