Add ability to uninstall service

This commit is contained in:
Marek Wolan
2023-08-29 14:15:49 +01:00
parent 9c8b7a7b7a
commit f0b82cbdfb
5 changed files with 74 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
from random import choice
from typing import Dict, Optional
from typing import Dict, Optional, Union
from primaite import getLogger
from primaite.simulator.core import SimComponent
@@ -211,7 +211,7 @@ class FileSystem(SimComponent):
if file is not None:
return file
def get_folder_by_name(self, folder_name: str) -> FileSystemFolder:
def get_folder_by_name(self, folder_name: str) -> Union[FileSystemFolder, None]:
"""
Returns a the first folder with a matching name.