Add cache_only param to delete_storage_node_data method

Signed-off-by: a.lipay <a.lipay@yadro.com>
This commit is contained in:
a.lipay 2022-11-23 19:21:38 +03:00 committed by Alipayy
parent f3bd1e2162
commit 977921cf49
2 changed files with 5 additions and 3 deletions

View file

@ -101,11 +101,12 @@ class Host(ABC):
"""
@abstractmethod
def delete_storage_node_data(self, service_name: str) -> None:
def delete_storage_node_data(self, service_name: str, cache_only: bool = False) -> None:
"""Erases all data of the storage node with specified name.
Args:
service_name: Name of storage node service.
cache_only: To delete cache only.
"""
@abstractmethod