Returns an empty list when the cluster does not exist

This commit is contained in:
Kyle Decot 2019-02-27 15:05:58 -05:00
parent 78d7d67751
commit 79e47fd98f
No known key found for this signature in database
GPG Key ID: 77A19B4BBD0744A4

View File

@ -428,9 +428,6 @@ class EC2ContainerServiceBackend(BaseBackend):
if cluster_name in self.clusters:
list_clusters.append(
self.clusters[cluster_name].response_object)
else:
raise Exception(
"{0} is not a cluster".format(cluster_name))
return list_clusters
def delete_cluster(self, cluster_str):