X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FAccessors%2FAccessors_standard.py;fp=PLC%2FAccessors%2FAccessors_standard.py;h=d86296be96a4eacb529fee4b24fa674b41fb50f4;hb=78793da0912bc094024714617e03dd4a737ee710;hp=941055dea287e0d8e059187afb12aa80a45571e9;hpb=c0ca16bb442f609ea3f75f3893c2573641c88371;p=plcapi.git diff --git a/PLC/Accessors/Accessors_standard.py b/PLC/Accessors/Accessors_standard.py index 941055d..d86296b 100644 --- a/PLC/Accessors/Accessors_standard.py +++ b/PLC/Accessors/Accessors_standard.py @@ -68,8 +68,8 @@ define_accessors(current_module, Node, "Extensions", "extensions", "node/config", "space-separated list of extensions to install", set_roles=["admin"],expose_in_api=True) # access HRN - this is the ideal definition of roles, even if AddNodeTag cannot handle this -define_accessors(current_module, [Node,Person,Slice] , "Hrn", "hrn", - "node/person/slice/sfa", "SFA human readable name", +define_accessors(current_module, [Node,Person,Slice,Site] , "Hrn", "hrn", + "node/person/slice/site/sfa", "SFA human readable name", set_roles=all_roles, expose_in_api=True) # test nodes perform their installation from an uncompressed bootstrapfs