{{cookiecutter.project_slug}}/scripts/python/kubernetes.py
def load(self):
        """Load cluster information by id."""
        data = self.get_data("kubernetes/clusters/%s" % self.id)
        cluster_dict = data["kubernetes_cluster"]

        # Setting the attribute values
        for attr in cluster_dict.keys():
            setattr(self, attr, cluster_dict[attr])

        return self
Load cluster information by id.
Load cluster information by id.
Load cluster information by id .
def load(self):
        data = self.get_data("kubernetes/clusters/%s" % self.id)
        cluster_dict = data["kubernetes_cluster"]
        for attr in cluster_dict.keys():
            setattr(self, attr, cluster_dict[attr])
        return self
def load ( self ) : data = self . get_data ( "kubernetes/clusters/%s" % self . id ) cluster_dict = data [ "kubernetes_cluster" ] for attr in cluster_dict . keys ( ) : setattr ( self , attr , cluster_dict [ attr ] ) return self
Load cluster information by id.
Load cluster information by id .
"""Load cluster information by id.""" # Setting the attribute values
self