Skip to content

Commit

Permalink
Update the SiteAdapter interface, that stop and terminate resources d…
Browse files Browse the repository at this point in the history
…o return None
  • Loading branch information
giffels committed Aug 8, 2023
1 parent 068b2f9 commit 023a71c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tardis/interfaces/siteadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,27 +273,25 @@ class variable.
) from ae

@abstractmethod
async def stop_resource(self, resource_attributes: AttributeDict):
async def stop_resource(self, resource_attributes: AttributeDict) -> None:
"""
Abstract method to define the interface to stop resources at a resource
provider.
:param resource_attributes: Contains describing attributes of the resource,
defined in the :py:class:`~tardis.resources.drone.Drone` implementation!
:type resource_attributes: AttributeDict
:return: Contains updated describing attributes of the resource.
:rtype: AttributeDict
:return: None
"""
raise NotImplementedError

@abstractmethod
async def terminate_resource(self, resource_attributes: AttributeDict):
async def terminate_resource(self, resource_attributes: AttributeDict) -> None:
"""
Abstract method to define the interface to terminate resources at a
resource provider.
:param resource_attributes: Contains describing attributes of the resource,
defined in the :py:class:`~tardis.resources.drone.Drone` implementation!
:type resource_attributes: AttributeDict
:return: Contains updated describing attributes of the resource.
:rtype: AttributeDict
:return: None
"""
raise NotImplementedError

0 comments on commit 023a71c

Please sign in to comment.