Allow the deployment of privileged KDUs 51/11151/1
authorDavid Garcia <david.garcia@canonical.com>
Tue, 7 Sep 2021 09:15:48 +0000 (11:15 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 7 Sep 2021 09:15:48 +0000 (11:15 +0200)
Change-Id: I7fac53669d08119be4f8da49509c6ee418c1df69
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/libjuju.py

index 64276d6..b897bc6 100644 (file)
@@ -558,7 +558,7 @@ class Libjuju:
         controller = await self.get_controller()
         model = await self.get_model(controller, model_name)
         try:
-            await model.deploy(uri)
+            await model.deploy(uri, trust=True)
             if wait:
                 await JujuModelWatcher.wait_for_model(model, timeout=timeout)
                 self.log.debug("All units active in model {}".format(model_name))