X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetNetworkTypes.py;h=dbddd9fc1e1003d141720301881a71ee866bcdbc;hb=085d2632ea5f116e91d8435c21aa1163ce40ac97;hp=7187d2140252b211f37d02f12b018c45a720c49a;hpb=e347fc823bbba9d88a3fddf07d5c21024dfd1e55;p=plcapi.git diff --git a/PLC/Methods/GetNetworkTypes.py b/PLC/Methods/GetNetworkTypes.py index 7187d21..dbddd9f 100644 --- a/PLC/Methods/GetNetworkTypes.py +++ b/PLC/Methods/GetNetworkTypes.py @@ -9,7 +9,7 @@ class GetNetworkTypes(Method): Returns a list of all valid network types. """ - roles = ['admin', 'pi', 'user', 'tech'] + roles = ['admin', 'pi', 'user', 'tech', 'node'] accepts = [ Auth() @@ -17,5 +17,6 @@ class GetNetworkTypes(Method): returns = [NetworkType.fields['type']] + def call(self, auth): return [network_type['type'] for network_type in NetworkTypes(self.api)]