summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dfaa6e8)
Change-Id: I83702862086996adaefbfb9721f08f40bc943a44
Signed-off-by: David Garcia <david.garcia@canonical.com>
return '<{}> Invalid certificate: {}'.format(type(self), super().__str__())
return '<{}> Invalid certificate: {}'.format(type(self), super().__str__())
+class N2VCNotFound(N2VCException):
+ """
+ Not found
+ """
+
+ def __init__(self, message: str = ''):
+ N2VCException.__init__(self, message=message)
+
+ def __str__(self):
+ return '<{}> Not found: {}'.format(type(self), super().__str__())
+
+
class K8sException(Exception):
"""
K8s exception
class K8sException(Exception):
"""
K8s exception
from n2vc.n2vc_conn import obj_to_dict, obj_to_yaml
from n2vc.exceptions \
import N2VCBadArgumentsException, N2VCException, N2VCConnectionException, \
from n2vc.n2vc_conn import obj_to_dict, obj_to_yaml
from n2vc.exceptions \
import N2VCBadArgumentsException, N2VCException, N2VCConnectionException, \
- N2VCExecutionException, N2VCInvalidCertificate
+ N2VCExecutionException, N2VCInvalidCertificate, N2VCNotFound
from n2vc.juju_observer import JujuModelObserver
from juju.controller import Controller
from n2vc.juju_observer import JujuModelObserver
from juju.controller import Controller
model = await self._juju_get_model(model_name=model_name)
if not model:
model = await self._juju_get_model(model_name=model_name)
if not model:
message="Model {} does not exist".format(model_name)
)
message="Model {} does not exist".format(model_name)
)