From: Thierry Parmentelat Date: Tue, 26 Feb 2013 23:30:06 +0000 (+0100) Subject: tweak roles for tag virt to 'all_roles' as bootmanager needs to tweak X-Git-Tag: plcapi-5.2-1~5 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=9cc77df7a6b1369b58df577fb03bd1cfca2d0f23 tweak roles for tag virt to 'all_roles' as bootmanager needs to tweak that too when calling GetNodeFlavour --- diff --git a/PLC/Accessors/Accessors_standard.py b/PLC/Accessors/Accessors_standard.py index 5e54437..0a02d8a 100644 --- a/PLC/Accessors/Accessors_standard.py +++ b/PLC/Accessors/Accessors_standard.py @@ -44,21 +44,21 @@ define_accessors(current_module, Slice, "Initscript","initscript", # needs 'admin' so the Set method is accessible define_accessors(current_module, [Slice,Node], "Arch", "arch", "node/slice/config", "node arch or slivers arch", - set_roles=["admin","pi","user","tech","node"], expose_in_api=True) + set_roles=all_roles, expose_in_api=True) define_accessors(current_module, [Slice,Node], "Pldistro", "pldistro", "node/slice/config/sfa", "PlanetLab distribution to use for node or slivers", - set_roles=["admin","pi","user","tech","node"], expose_in_api=True) + set_roles=all_roles, expose_in_api=True) # fc of course historically was for fedora core define_accessors(current_module, [Slice,Node], "Fcdistro", "fcdistro", "node/slice/config", "Linux distribution to use for node or slivers", - set_roles=["admin","pi","user","tech","node"], expose_in_api=True) + set_roles=all_roles, expose_in_api=True) # the virtualization model to use - this is only used by the bootmanager for # picking the right options e.g. prior to reinstalling # see PLC_FLAVOUR_VIRT_MAP to see how the default gets computed define_accessors(current_module, Node, "Virt", "virt", "node/operation", 'typically "vs" or "lxc"', - set_roles=["admin"], expose_in_api=True) + set_roles=all_roles, expose_in_api=True) # node deployment (alpha, beta, ...) define_accessors(current_module, Node, "Deployment", "deployment", "node/operation", 'typically "alpha", "beta", or "production"',