Skip to content

Commit cfa113c

Browse files
committed
Remove abstract base clase handling and directly
make use of Not ImplementedError Signed-off-by: Toni Finger <[email protected]>
1 parent 76134d6 commit cfa113c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/kaas/plugin/interface.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from abc import abstractmethod
21

32

43
class KubernetesClusterPlugin():
@@ -37,7 +36,6 @@ def delete_cluster(self):
3736
..
3837
"""
3938

40-
@abstractmethod
4139
def create_cluster(self, cluster_name="scs-cluster", version=None, kubeconfig_filepath=None) -> (str):
4240
"""
4341
This method is to be called to create a k8s cluster
@@ -46,10 +44,11 @@ def create_cluster(self, cluster_name="scs-cluster", version=None, kubeconfig_fi
4644
:param: kubeconfig_filepath:
4745
:return: kubeconfig_filepath
4846
"""
47+
raise NotImplementedError
4948

50-
@abstractmethod
5149
def delete_cluster(self, cluster_name=None):
5250
"""
5351
This method is to be called in order to unprovision a cluster
5452
:param: cluster_name:
5553
"""
54+
raise NotImplementedError

0 commit comments

Comments
 (0)