{{cookiecutter.project_slug}}/scripts/python/kubernetes.py
def load_by_name(self, name):
        """Load cluster information by name."""
        data = self.get_data("kubernetes/clusters")
        for cluster in data["kubernetes_clusters"]:
            if cluster["name"] == name:
                self.id = cluster["id"]
                return self.load()
        return None
Load cluster information by name.
Load cluster information by name.
Load cluster information by name .
def load_by_name(self, name):
        data = self.get_data("kubernetes/clusters")
        for cluster in data["kubernetes_clusters"]:
            if cluster["name"] == name:
                self.id = cluster["id"]
                return self.load()
        return None
def load_by_name ( self , name ) : data = self . get_data ( "kubernetes/clusters" ) for cluster in data [ "kubernetes_clusters" ] : if cluster [ "name" ] == name : self . id = cluster [ "id" ] return self . load ( ) return None
Load cluster information by name.
Load cluster information by name .
"""Load cluster information by name."""
self
name