Move expose() logic to Application
[osm/N2VC.git] / juju / model.py
index 1ed5ecd..ab9f712 100644 (file)
@@ -1313,9 +1313,7 @@ class BundleHandler(object):
             be exposed.
         """
         application = self.resolve(application)
-        log.debug('Exposing %s', application)
-        await self.app_facade.Expose(application)
-        return None
+        return await self.model.applications[application].expose()
 
     async def setAnnotations(self, id_, entity_type, annotations):
         """