From f6e43e2bbbe7d232ed91b61cfbbf0b8c267e66b1 Mon Sep 17 00:00:00 2001 From: Daniel Sagi Date: Thu, 17 Jun 2021 15:11:19 +0000 Subject: [PATCH] fixed adding __str__ to cloud type --- kube_hunter/console/general/types.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kube_hunter/console/general/types.py b/kube_hunter/console/general/types.py index c8f146a..fa4addc 100644 --- a/kube_hunter/console/general/types.py +++ b/kube_hunter/console/general/types.py @@ -27,6 +27,9 @@ class Cloud: def __init__(self, name): self.name = name + def __str__(self): + return self.name + class UnknownCloud(Cloud): def __init__(self): super(UnknownCloud, self).__init__("Unknown Cloud") \ No newline at end of file