Allow entry points to override existing resources
Third party modules may want to modify existing resources behaviours. To allow overriding existing resources, entry point modules need to be loaded first. It is not an issue to load them first since we sort the classes afterwards. Change-Id: I92999d98df249649b79b13ca2be2691efdde737f
This commit is contained in:
parent
43c60708e5
commit
4df8423bdf
|
@ -54,8 +54,8 @@ def get_resource_classes(resources=None):
|
|||
This way we can easily extend OSPurge by just adding a new file in the
|
||||
`resources` dir or a package with `ENTRY_POINTS_NAME` entry point.
|
||||
"""
|
||||
load_ospurge_resource_modules()
|
||||
load_entry_points_modules()
|
||||
load_ospurge_resource_modules()
|
||||
|
||||
all_classes = base.ServiceResource.__subclasses__()
|
||||
|
||||
|
|
Loading…
Reference in New Issue