Fix missing await 22/9222/2
authorDavid Garcia <david.garcia@canonical.com>
Tue, 30 Jun 2020 06:39:26 +0000 (08:39 +0200)
committergarciadav <david.garcia@canonical.com>
Tue, 30 Jun 2020 07:13:24 +0000 (09:13 +0200)
Change-Id: I64babbb51193d47122e34498f11b6d380b44a174
Signed-off-by: David Garcia <david.garcia@canonical.com>
n2vc/n2vc_juju_conn.py

index 07c3903..ab8c6e8 100644 (file)
@@ -241,7 +241,7 @@ class N2VCJujuConnector(N2VCConnector):
         models = await self.libjuju.list_models(contains=ns_id)
 
         for m in models:
-            status[m] = self.libjuju.get_model_status(m)
+            status[m] = await self.libjuju.get_model_status(m)
 
         if yaml_format:
             return obj_to_yaml(status)