X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetPeerName.py;h=30fbd945ab4b28fb01083c7ef568afea3e314ac5;hb=87e18d743c775fc8f3dfb3972e183567d940e7c6;hp=9d0dc24571640a446126ca48b7616fe091c0d4cd;hpb=dfd614ed44d424d6677599d55dc8ccf76f274a2b;p=plcapi.git diff --git a/PLC/Methods/GetPeerName.py b/PLC/Methods/GetPeerName.py index 9d0dc24..30fbd94 100644 --- a/PLC/Methods/GetPeerName.py +++ b/PLC/Methods/GetPeerName.py @@ -8,12 +8,12 @@ class GetPeerName (Method): """ Returns this peer's name, as defined in the config as PLC_NAME """ - roles = ['admin'] + + roles = ['admin', 'peer', 'node'] accepts = [Auth()] - returns = Parameter (Peer.fields['peername']) + returns = Peer.fields['peername'] def call (self, auth): return self.api.config.PLC_NAME -