summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f52cb7c)
Import was removed for flake8 compliance, but it was
needed at runtime.
Change-Id: I2c1fce7b681582382c3c8f74267c3010bfcd97d6
Signed-off-by: beierlm <mark.beierl@canonical.com>
import concurrent
import os
import uuid
import concurrent
import os
import uuid
import juju
from juju.controller import Controller
import juju
from juju.controller import Controller
+from juju.model import Model
from n2vc.exceptions import K8sException
from n2vc.k8s_conn import K8sConnector
from n2vc.exceptions import K8sException
from n2vc.k8s_conn import K8sConnector
from .exceptions import MethodNotImplemented
from .exceptions import MethodNotImplemented
- async def add_model(self, model_name: str, cluster_uuid: str,) -> juju.model.Model:
+ async def add_model(self, model_name: str, cluster_uuid: str,) -> Model:
"""Adds a model to the controller
Adds a new model to the Juju controller
"""Adds a model to the controller
Adds a new model to the Juju controller
"Unable to locate configuration for cluster {}".format(cluster_uuid)
)
"Unable to locate configuration for cluster {}".format(cluster_uuid)
)
- async def get_model(self, model_name: str, cluster_uuid: str,) -> juju.model.Model:
+ async def get_model(self, model_name: str, cluster_uuid: str,) -> Model:
"""Get a model from the Juju Controller.
Note: Model objects returned must call disconnected() before it goes
"""Get a model from the Juju Controller.
Note: Model objects returned must call disconnected() before it goes