modified the way custom services can be imported and added a test case to verify the import functionality
This commit is contained in:
parent
78ff7f2189
commit
35c48e67a3
5 changed files with 121 additions and 20 deletions
|
@ -64,6 +64,7 @@ class MyService(CoreService):
|
|||
return 'echo " network %s"' % net
|
||||
|
||||
|
||||
# this is needed to load desired services when being integrated into core, otherwise this is not needed
|
||||
def load_services():
|
||||
# this line is required to add the above class to the list of available services
|
||||
ServiceManager.add(MyService)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue